I did up some Eclipse templates for some of the Camel EIPs (both Java and XML). Let me know what you think.
Closing all 1.5.0 issues
These two patches were applied into the svn repository.
Attaching a patch to change the when syntax a bit.
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.
Updated notes here http://cwiki.apache.org/confluence/display/CAMEL/Building
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.
BTW I wonder if we should encourage the use of
as the when(). is typically more feature rich and has better IDE smart completion
Applied patch with thanks to Jonathan.
Jonathan, Could you also update the wiki page of apache camel ?
Also added a blog post about this here http://janstey.blogspot.com/2008/08/eclipse-templates-for-apache-camel.html
XML templates if you want to try them out without building Camel.
Java templates if you want to try them out without building Camel.
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