Presented by: Tom Sausner
• To give those unfamiliar with eclipse a view on what it is and how it works.
• Discuss Java development workflow from an eclipse perspective.
• Show and Tell: demonstration projects
• Not an Eclipse vs. ? Shootout.
• Interactive
• What is Eclipse?
• Download from www.eclipse.org
• Brief History
• Currently migrating from CPL to EPL
•
QuickTime™ and a
TIFF (LZW) decompressor are needed to see this picture.
• Perspectives
– Perspectives usually organized around tasks.
• Perspectives contain
– Editors
– Views
• Editors are associated with file types
• Main purpose of views is to support editors and provide alternate navigation
• Project
– Project natures indicate personality (e.g. Java,
HTML, etc.)
– Projects contain resources (files and directories)
• Project types Simple, Java, PDE, many others.
• Each project maps to one directory
• Importing - file system, source repository.
• Working Sets
• Package Explorer
– Label decorations
– Project Preferences
• Common views
– Outline View
• Outline popup.
– Tasks, Bookmarks and Fast Views
• Searching code
• Java -> Code Style, suffix List, code format
• Java->Editor->Templates
• Java->BuildPath
• Export and Import preferences
• Navigation
– between editor window ( tabs)
– Last edit location ctrl-Q
– Reordering View and Editor Tabs
• Code Complete, Templates
• Code Assist - CTRL-Space
• Method Parameter hints - CTRL-Shift-Space
• Quick Fix
• Surrounding code in a block
• Organize imports
• Declaration
• References
• Source
– format,
– getters/setters
– block commands
• Refactoring
– rename, move, change method signature
• Applications, Applets, and JUnit tests
• Run parameters, Run Dialog
• Debugging Perspective
• Run Code Snippets in Scrapbook
• Ant View - sensitive to ant syntax
• Ant Support - create and run ant files
– Run->External Tools
– Execute ant targets from the outline view
• Ant output is displayed in the console view.
• CVS and Subversion plug-ins available
• Repository browsing
• Project creation, branching and version control
• Compare branches, look at history
• Tagging
• Update
– Repository -> your local copy
• Commit
– your changes -> Repository
• Automatic merge, prompt for manual help
• Difference view.
• Overrides
• Except for the Platform Core, all Eclipse functionality is implemented as plug-ins
• Plug-ins catalog
– eclipse-plugins.2y.net/eclipse/plugins.jsp
• Installation
– Drag-N-Drop
– Help->Software Updates…->Find and Install.
• Some plug-ins are very version sensitive.
• Setup - tell the plug-in where tomcat is installed.
• Stop and Start tomcat from w/in eclipse.
• Create and debug a simple jsp page.
• Create and debug a simple servelet
• http://www.sysdeo.com/eclipse/tomcatPl ugin.html
• Demonstrate ORM in eclipse
• Demo Database Plug-in
• Edit xml files with XMLBuddy.
• Using Ant from Eclipse
• Test and Performance Tools Platform
– Frameworks for tool vendors
• Web Tools Platform
– J2EE friendly editors & wizards
• Business Intelligence and Reporting
Tools (BIRT)
– Web or PDF based reports.
• Ctrl-shift-o… fixes up imports
• Ctrl - space … invokes code completion
& code templates
• Pop-up menu for references, declarations, and refactoring.
• Outline view
• Quick Fix ctrl-1
• www.eclipse.org
• http://eclipseplugins.2y.net/eclipse/plugins.jsp
• Rss http://eclipseplugins.2y.net/eclipse/rss_info.jsp
• http://www.eclipseplugincentral.com/We b_Links+main.html