[ 
https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45469#action_45469
 ] 

Jonathan Anstey commented on CAMEL-855:
---------------------------------------

I just looked back at my comment here and realized I totally misread James' 
comment! :) James mentioned that this

{code:language=java}
.when().xpath("$foo = 'bar'").to("mock:x")
{code}

would be better than this

{code:language=java}
.when(header("foo").isEqualTo("bar")).to("mock:x")
{code}

The xpath one IS actually closer to the XML template (unlike I mentioned 
before...). I'll attach a patch for this shortly.

> Add Eclipse Templates
> ---------------------
>
>                 Key: CAMEL-855
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-855
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: tooling
>            Reporter: Jonathan Anstey
>            Assignee: Willem Jiang
>             Fix For: 1.5.0
>
>         Attachments: addCamelTemplates.patch, camel_java_templates.xml, 
> camel_xml_templates.xml
>
>
> I did up some Eclipse templates for some of the Camel EIPs (both Java and 
> XML). Let me know what you think.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to