Hade en liten workshop om Eclipse och detta var anteckningarna jag utgick från (och 2010-04-13 höll jag en till, och uppdaterade sedan listan).
Eclipse GUI
* Workbench, Workspace, Sets, Project, Project linking/dependencies
* Package explorer – flat vs hierarchic layout
* View – SA+Q, Window > Show View, Detached view
* Perspective: C+F8, Window > Customize Perspective
* Flera fönster / workspaces
Project
* .classpath, .project
* Attach javadoc
* Attach source
* maven eclipse:eclipse -DdownloadSources=true -DdownloadJavadoc=true
Editor
* F3 F2 (source, javadoc)
* F12
* C+M
* Link with editor
* Templates – sysout > System.out.println()
* show line numbers, show print margin vs C+L
* CS+O C+mellanslag SA+D SA+X CS+F
* New Editor [editor1|edtior2]
* SA+R
* CS+G – FilterBidResult.MATCH
* C+E, C+F6 CS+F6
* bind:a om tangenter till Ctrl+Tab – Window > Prefs > General > Keys
* Alt-<, Alt->
* Alt-v, Alt-^
* CS+T ype
* CS+R esource
* Mark occurance / highlight SA+O – visas i listen till höger om rullningslist
* Team compare, local history
Ctrl+1
* Visa: ta bort TripAction convertToProperFormat
return null;
return result; C+1
* Visa:
obj.method(); C+1
x = obj.method(); C+1
String x = obj.method(); C+1
Debug
* Breakpoints med krav
* CS+B
* F5 step into, F6 step over, F7 step out, F8 run
* C+3 Rerun
* Break på Exception, t ex AssertionError, NullPointerException
Remote Debugging
* -Xdebug –Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1234
* t ex
** websphere
http://pa-blogger.blogspot.com/2008/08/debugging-websphere-with-eclipse.html
** JBoss
** externa applikationer? mvn jetty:run
CVS
* Team compare (se allt som hänt mellan olika datum)
* Flytta root/server
History
* local vs remote
* eclipse -clean
XML Schema
* XML Catalog – installera schema för att få content assist
* Generate XML file – få exempelfil utifrån schema
* Namespaces?
Views
* Problems
** Quick fix
* Tasks
** FIXME, TODO
* Search
** next match/annotation (C+, C+.)
** history
* Servers
** Configuration
* Console
** follow output
Lite andra saker
* Aptana – för JavaScript-redigering (egentligen dynamiska språk)
* MyEclipse – plugins för koppling till BugZilla/JIRA