Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: ECLIPSE-207
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Fuse IDE

try .. catch .. finally in Fuse IDE

Created: 27/Apr/11 02:46 PM   Updated: 19/Sep/12 08:24 AM
Component/s: Camel Editor
Affects Version/s: None
Fix Version/s: None

File Attachments: None
Image Attachments:

1. try.png
(24 kB)

2. try2.png
(22 kB)
Environment: 1.1.23


 Description  « Hide
Yeah we got these babies in the DSL and some end users like that they can do what they are used to in JAva code with try .. catch in the routes.

See screenshot of a try .. catch sample.
The catch is rendered on top, which it of course should be rendered in the bottom.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen added a comment - 27/Apr/11 02:47 PM
The source code
<route id="route2">
        <from uri="activemq:foo"/>
        <doTry>
            <bean method="myMethod" ref="myBean"/>
            <doCatch>
                <exception>java.io.IOException</exception>
                <handled>
                    <language language="simple"/>
                </handled>
                <to uri="file:io-error"/>
            </doCatch>
        </doTry>
    </route>

Claus Ibsen added a comment - 27/Apr/11 02:54 PM
I clicked back on design from source view and the GUI was rendererd as screenshot: try2

I wonder if we need a special logic in Fuse IDE to render doTry .. doCatch in a way thats would be more intuitive for end users?


James Strachan added a comment - 04/May/11 10:29 AM
I guess its a bit like choice/when/otherwise - we could do with a custom UI like this ECLIPSE-176