The World In and Around E C L I P S E
What’s in store… The  platform Plugins  and installing them Perspectives  and  Views Creating  a Java Standalone and Web project Working with  Preferences Import  and  Export  functions External Tools Configuring  Ant  build Shortcuts!
O R I G I N S Version 1.0 –  November, 2001 Serious usage started with  version 3.0 IBM spent nearly  $ 40 million  on its development Object Technologies International  [OTI] - IBM subsidiary – takes care of Eclipse development OTI developed  VA4J  [Visual Age] – re-written to emerge as Eclipse Released as  Open Source  – still is! Consists of 3 sub-projects:  Platform ,  Java Development Toolkit ,  Plug-in Development
The  P L A T F O R M
The  P L A T F O R M Platform Runtime –  discovers all installed plug-ins. Does NOT load them Workspace manages user’s resources in file-folder structure maintains low-level history of files notifies Tools about workspace changes Workbench –  provides the graphical UI using SWT and JFace Team support –  plug-in facility for version control Help –  extensible documentation facility
Downloading  E C L I P S E http://www.eclipse.org/downloads/ JRE 5.0+ will be required to run Eclipse Release  version – thoroughly tested, major release Stable  version – before release, undergoing testing, relatively stable Integration  build – individual components are stable, but no guarantee on integrated behaviour Nightly  build –  built from the latest version of code Gives a feel of the latest/upcoming features
P L U G I N S Every component in the workbench  is a  plug-in Extend the feature set of Eclipse Examples – Web Toolkit Project [WTP], UML Designer, log4j viewer Plug-ins repository -  http://www.eclipseplugincentral.com Can be installed in 2 ways – Through the IDE Manual installation
P L U G I N S  -  Installation Using the IDE Help >> Software Updates
P L U G I N S  -  Installation Using the IDE Existing plug-ins can be updated by clicking on ‘Update’ button there For a new plug-in, the repository site needs to be added Enter the URL for the plug-in repository/archive
P L U G I N S  -  Installation Download the plug-in archive [usually a ZIP file] Extract it – a ‘features’ and ‘plugins’ directory are present Go to the Eclipse installation directory  Copy the contents of extracted ‘features’ and ‘plugins’ directory Launch Eclipse with the ‘- clean ’ flag
P E R S P E C T I V E S  &  V I E W S The many number of different types of panes –  Views Pre-selected sets of views arranged in an order –  Perspective User customised perspectives also possible Views Perspective
Creating – J A V A  Standalone Project File >> New >> Java Project Either a new project content, or, existing content can be chosen Configure the JRE  version to be used Enter a project name
Creating – J A V A  Standalone Project If not selected, choose the  Java perspective  and Package Explorer view Default package structure with ‘src’ folder Default JAR’s imported from JRE Ctrl + N – get the new resource wizard Select a ‘class’ or ‘package’  to add
Creating – J A V A  Web Project Ctrl + N – get the new resource wizard Select ‘Dynamic Web Project’ under ‘Web’ folder WTP plug-in should be installed! Other Web project artefacts can also be created later on
Creating – J A V A  Web Project Enter a project name This will also be context root Web application  server specified here Specify any of the  default config presets WTP plug-in should be installed!
Creating – J A V A  Web Project If not selected, choose the  Java EE perspective  and Package Explorer view Ctrl + N – get the new resource wizard Select a ‘class’ or ‘package’  to add  Default package structure with ‘src’ and ‘WebContent’ folder. Default JAR’s imported from JRE
P R E F E R E N C E S Allows user to personalise and customise Fonts, colours, layout, formatting, behaviour, presets Can be saved and exported and shared Helps in getting a consistent look
P R E F E R E N C E S Java coding standards can be automatically enforced! Window >> Preferences >> Java >> Formatter, click on Edit Almost all aspects of code formatting like indentation, tab control, white-space control, etc
References UML Basic: An Introduction [IBM] Head First  - Object Oriented Analysis and Design Wikipedia
 

Eclipse IDE

  • 1.
    The World Inand Around E C L I P S E
  • 2.
    What’s in store…The platform Plugins and installing them Perspectives and Views Creating a Java Standalone and Web project Working with Preferences Import and Export functions External Tools Configuring Ant build Shortcuts!
  • 3.
    O R IG I N S Version 1.0 – November, 2001 Serious usage started with version 3.0 IBM spent nearly $ 40 million on its development Object Technologies International [OTI] - IBM subsidiary – takes care of Eclipse development OTI developed VA4J [Visual Age] – re-written to emerge as Eclipse Released as Open Source – still is! Consists of 3 sub-projects: Platform , Java Development Toolkit , Plug-in Development
  • 4.
    The PL A T F O R M
  • 5.
    The PL A T F O R M Platform Runtime – discovers all installed plug-ins. Does NOT load them Workspace manages user’s resources in file-folder structure maintains low-level history of files notifies Tools about workspace changes Workbench – provides the graphical UI using SWT and JFace Team support – plug-in facility for version control Help – extensible documentation facility
  • 6.
    Downloading EC L I P S E http://www.eclipse.org/downloads/ JRE 5.0+ will be required to run Eclipse Release version – thoroughly tested, major release Stable version – before release, undergoing testing, relatively stable Integration build – individual components are stable, but no guarantee on integrated behaviour Nightly build – built from the latest version of code Gives a feel of the latest/upcoming features
  • 7.
    P L UG I N S Every component in the workbench is a plug-in Extend the feature set of Eclipse Examples – Web Toolkit Project [WTP], UML Designer, log4j viewer Plug-ins repository - http://www.eclipseplugincentral.com Can be installed in 2 ways – Through the IDE Manual installation
  • 8.
    P L UG I N S - Installation Using the IDE Help >> Software Updates
  • 9.
    P L UG I N S - Installation Using the IDE Existing plug-ins can be updated by clicking on ‘Update’ button there For a new plug-in, the repository site needs to be added Enter the URL for the plug-in repository/archive
  • 10.
    P L UG I N S - Installation Download the plug-in archive [usually a ZIP file] Extract it – a ‘features’ and ‘plugins’ directory are present Go to the Eclipse installation directory Copy the contents of extracted ‘features’ and ‘plugins’ directory Launch Eclipse with the ‘- clean ’ flag
  • 11.
    P E RS P E C T I V E S & V I E W S The many number of different types of panes – Views Pre-selected sets of views arranged in an order – Perspective User customised perspectives also possible Views Perspective
  • 12.
    Creating – JA V A Standalone Project File >> New >> Java Project Either a new project content, or, existing content can be chosen Configure the JRE version to be used Enter a project name
  • 13.
    Creating – JA V A Standalone Project If not selected, choose the Java perspective and Package Explorer view Default package structure with ‘src’ folder Default JAR’s imported from JRE Ctrl + N – get the new resource wizard Select a ‘class’ or ‘package’ to add
  • 14.
    Creating – JA V A Web Project Ctrl + N – get the new resource wizard Select ‘Dynamic Web Project’ under ‘Web’ folder WTP plug-in should be installed! Other Web project artefacts can also be created later on
  • 15.
    Creating – JA V A Web Project Enter a project name This will also be context root Web application server specified here Specify any of the default config presets WTP plug-in should be installed!
  • 16.
    Creating – JA V A Web Project If not selected, choose the Java EE perspective and Package Explorer view Ctrl + N – get the new resource wizard Select a ‘class’ or ‘package’ to add Default package structure with ‘src’ and ‘WebContent’ folder. Default JAR’s imported from JRE
  • 17.
    P R EF E R E N C E S Allows user to personalise and customise Fonts, colours, layout, formatting, behaviour, presets Can be saved and exported and shared Helps in getting a consistent look
  • 18.
    P R EF E R E N C E S Java coding standards can be automatically enforced! Window >> Preferences >> Java >> Formatter, click on Edit Almost all aspects of code formatting like indentation, tab control, white-space control, etc
  • 19.
    References UML Basic:An Introduction [IBM] Head First - Object Oriented Analysis and Design Wikipedia
  • 20.