enhancing developer productivity using eclipse

20
Enhancing Developer Productivity using Eclipse Presented by: Tom Sausner

Upload: adelio

Post on 02-Feb-2016

36 views

Category:

Documents


0 download

DESCRIPTION

Enhancing Developer Productivity using Eclipse. Presented by: Tom Sausner. Goals. 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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Enhancing Developer Productivity using Eclipse

Enhancing Developer Productivity using Eclipse

Presented by: Tom Sausner

Page 2: Enhancing Developer Productivity using Eclipse

Goals

• 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

Page 3: Enhancing Developer Productivity using Eclipse

Eclipse Info

• What is Eclipse?

• Download from www.eclipse.org

• Brief History

• Currently migrating from CPL to EPL

Page 4: Enhancing Developer Productivity using Eclipse

Eclipse Architecture

QuickTime™ and aTIFF (LZW) decompressor

are needed to see this picture.

Page 5: Enhancing Developer Productivity using Eclipse

The Workbench

• 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

Page 6: Enhancing Developer Productivity using Eclipse

Project Creation

• 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

Page 7: Enhancing Developer Productivity using Eclipse

Java Development Toolkit

• Package Explorer– Label decorations– Project Preferences

• Common views– Outline View

• Outline popup.

– Tasks, Bookmarks and Fast Views

• Searching code

Page 8: Enhancing Developer Productivity using Eclipse

Eclipse Preferences

• Java -> Code Style, suffix List, code format

• Java->Editor->Templates

• Java->BuildPath

• Export and Import preferences

Page 9: Enhancing Developer Productivity using Eclipse

JDT II

• 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

Page 10: Enhancing Developer Productivity using Eclipse

JDT - Popup Menu

• Declaration• References• Source

– format, – getters/setters– block commands

• Refactoring – rename, move, change method signature

Page 11: Enhancing Developer Productivity using Eclipse

Run/Debug

• Applications, Applets, and JUnit tests

• Run parameters, Run Dialog

• Debugging Perspective

• Run Code Snippets in Scrapbook

Page 12: Enhancing Developer Productivity using Eclipse

Eclipse and Ant

• 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.

Page 13: Enhancing Developer Productivity using Eclipse

CVS/SVN Repository Exploring

• CVS and Subversion plug-ins available

• Repository browsing

• Project creation, branching and version control

• Compare branches, look at history

• Tagging

Page 14: Enhancing Developer Productivity using Eclipse

Team Synchronizing

• Update – Repository -> your local copy

• Commit– your changes -> Repository

• Automatic merge, prompt for manual help

• Difference view.• Overrides

Page 15: Enhancing Developer Productivity using Eclipse

Plug-ins

• 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.

Page 16: Enhancing Developer Productivity using Eclipse

Tomcat Plug-in Demo

• 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/tomcatPlugin.html

Page 17: Enhancing Developer Productivity using Eclipse

Hibernate/DB Plug-in demo

• Demonstrate ORM in eclipse

• Demo Database Plug-in

• Edit xml files with XMLBuddy.

• Using Ant from Eclipse

Page 18: Enhancing Developer Productivity using Eclipse

Some Eclipse Sub-Projects

• 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.

Page 19: Enhancing Developer Productivity using Eclipse

My Favorites Eclipse Shortcuts

• 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

Page 20: Enhancing Developer Productivity using Eclipse

Questions

• www.eclipse.org

• http://eclipse-plugins.2y.net/eclipse/plugins.jsp

• Rss - http://eclipse-plugins.2y.net/eclipse/rss_info.jsp

• http://www.eclipseplugincentral.com/Web_Links+main.html