Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Custom ECL Commands(Returning a value from the custom command to the code where it was called)
Custom ECL Commands [message #1745530] Wed, 12 October 2016 07:27 Go to next message
Komal Sorte is currently offline Komal SorteFriend
Messages: 2
Registered: September 2016
Junior Member
I've tried to create an ecl custom command via following the instructions given on

On the above site they have implemented ICommandService Interface, this works perfectly fine but now I want to return a String object from it to the code where this command was called but the interface only lets return an object of IStatus type.

So please suggest solutions or hints for the above problem.

Komal S
Re: Custom ECL Commands [message #1749203 is a reply to message #1745530] Sat, 03 December 2016 01:43 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal RapicaultFriend
Messages: 333
Registered: July 2009
Location: Ottawa
Senior Member
The output of a command is not returned from the service implementation. Instead it is returned through a special output object that you obtain from the context passed as a parameter to your command implementation.
In the page you refer to, the line is IPipe output = context.getOutput();

You can also return EMF objects defined in your command. We use that in EGerrit

Re: Custom ECL Commands [message #1750135 is a reply to message #1749203] Fri, 16 December 2016 10:42 Go to previous message
Artem Kovalev is currently offline Artem KovalevFriend
Messages: 25
Registered: April 2016
Junior Member
Hi Komal,

Or you can extends org.eclipse.rcptt.ecl.runtime.SingleCommandService for your ecl service.
Previous Topic:problems converting long
Next Topic:How to access resource via JNDI in RCPTT
Goto Forum:

Current Time: Sat Nov 17 13:32:11 GMT 2018

Powered by FUDForum. Page generated in 0.02752 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top