I did up some Eclipse templates for some of the Camel EIPs (both Java and XML). Let me know what you think.
Here are the templates added into the build.
To add them to your workspace, run this:
mvn -Psetup.eclipse -Declipse.workspace.dir=/path/to/your/workspace
Java templates if you want to try them out without building Camel.
XML templates if you want to try them out without building Camel.
Also added a blog post about this here http://janstey.blogspot.com/2008/08/eclipse-templates-for-apache-camel.html
Applied patch with thanks to Jonathan.
Jonathan, Could you also update the wiki page of apache camel ?
BTW I wonder if we should encourage the use of
as the when(). is typically more feature rich and has better IDE smart completion
James, agree with your comment. Having when(header(...)) or when(xpath(...)) is more intuitive and IMO would match the XML template more closely.
Willem, I'll update the build instructions with this info.
Updated notes here http://cwiki.apache.org/confluence/display/CAMEL/Building
I just looked back at my comment here and realized I totally misread James' comment! James mentioned that this
.when().xpath("$foo = 'bar'").to("mock:x")
would be better than this
The xpath one IS actually closer to the XML template (unlike I mentioned before...). I'll attach a patch for this shortly.
Attaching a patch to change the when syntax a bit.
These two patches were applied into the svn repository.
Closing all 1.5.0 issues