An intro to Eclipse Open Source Development Platform © B. de Bruin, chainsoftware Basic Function Locations • File New Project Java Java Project • To add a package: File New Package • To add a class: File New Class • To run: Run Run… • To build jar: File Export Jar file (c) 2003 B. de Bruin, chainsoftware. Tips & Tricks • Fix code layout: CTRL-SHIFT-F • Syntax assist: CTRL-SPACE – eg. enter ‘for’, hit ctrl-space and you will get a list of possible completions • Change function: right click on keyword, choose open declaration. • Try & catch: highlight code, right click, choose surround with try and catch block (c) 2003 B. de Bruin, chainsoftware. Tips & Tricks • Comment text: ctrl-/ • Uncomment text: ctrl-\ • Find declaration: Select variable/method, hit F3 (c) 2003 B. de Bruin, chainsoftware. Do’s and Don’ts • • • • • DON’T use SWING, DO use SWT DO create a package, DON’T just a class DO use JavaDoc, DON’T obfuscate DON’T use JDK1.1, DO use JDK 1.3+ DO use import java.util.Date, DON’T use import java.* • DO use CVS, DON’T just save (c) 2003 B. de Bruin, chainsoftware. Links and Further reading • download & docs: www.eclipse.org • tutorial: www.3plus4software.de/eclipse/index_en.html • UML plugin: www.eclipseuml.com (c) 2003 B. de Bruin, chainsoftware.