[jira] Created: (CAMEL-855) Add Eclipse Templates

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
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: Jonathan Anstey
             Fix For: 1.5.0


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 | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-855:
----------------------------------

    Attachment: addCamelTemplates.patch

Here are the templates added into the build.

To add them to your workspace, run this:

{code}
mvn -Psetup.eclipse -Declipse.workspace.dir=/path/to/your/workspace
{code}


> 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: Jonathan Anstey
>             Fix For: 1.5.0
>
>         Attachments: addCamelTemplates.patch, camel_java_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 | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-855:
----------------------------------

    Attachment: camel_java_templates.xml

Java templates if you want to try them out without building Camel.

> 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: Jonathan Anstey
>             Fix For: 1.5.0
>
>         Attachments: addCamelTemplates.patch, camel_java_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 | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-855:
----------------------------------

    Attachment: camel_xml_templates.xml

XML templates if you want to try them out without building Camel.

> 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: Jonathan Anstey
>             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 | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

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

Also added a blog post about this here http://janstey.blogspot.com/2008/08/eclipse-templates-for-apache-camel.html

> 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: Jonathan Anstey
>             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 | Threaded
Open this post in threaded view
|

[jira] Assigned: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-855:
----------------------------------

    Assignee: Willem Jiang  (was: Jonathan Anstey)

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Willem Jiang commented on CAMEL-855:
------------------------------------

Applied patch with thanks to Jonathan.

Jonathan, Could you also update the wiki page of apache camel ?



> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

James Strachan commented on CAMEL-855:
--------------------------------------

BTW I wonder if we should encourage the use of

{code}
when().xpath("/foo")
{code}

rather than
{code}
when(header....)
{code}

as the when(). is typically more feature rich and has better IDE smart completion

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

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

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.

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

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

Updated notes here http://cwiki.apache.org/confluence/display/CAMEL/Building

> 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 | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-855:
----------------------------------

    Attachment: templatesChange.patch

Attaching a patch to change the when syntax a bit.

> 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, templatesChange.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Updated: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Anstey updated CAMEL-855:
----------------------------------

    Patch Info: [Patch Available]

> 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, templatesChange.patch
>
>
> 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 | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-855) Add Eclipse Templates

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

     [ https://issues.apache.org/activemq/browse/CAMEL-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-855.
--------------------------------

    Resolution: Fixed

These two patches were applied into the svn repository.

> 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, templatesChange.patch
>
>
> 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.