Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to execute a Handler by id?
https://www.eclipse.org/forums/index.php/mv/msg/440240/985901/#msg_985901
]]>Alex Kipling2012-11-16T15:52:53-00:00Re: How to execute a Handler by id?
https://www.eclipse.org/forums/index.php/mv/msg/440240/985959/#msg_985959
You can do a ContextInjectionFactory.invoke(handler.getObject(), Execute.class, context); where handler is your MHandler and context is the context your handler will use as an injection supplier (where the values will come from) but I am not sure it is a good idea to use it this way although it depends on the specific case.]]>2012-11-16T21:06:03-00:00Re: How to execute a Handler by id?
https://www.eclipse.org/forums/index.php/mv/msg/440240/986005/#msg_986005
Tom
Am 16.11.12 22:06, schrieb Sopot Cela:
> No through any service AFAIK.
> You can do a ContextInjectionFactory.invoke(handler.getObject(),
> Execute.class, context); where handler is your MHandler and context is
> the context your handler will use as an injection supplier (where the
> values will come from) but I am not sure it is a good idea to use it
> this way although it depends on the specific case.]]>Thomas Schindl2012-11-17T11:18:20-00:00Re: How to execute a Handler by id?
https://www.eclipse.org/forums/index.php/mv/msg/440240/986011/#msg_986011
Thomas Schindl wrote on Sat, 17 November 2012 12:18
EHandlerService#execute
Tom
Am 16.11.12 22:06, schrieb Sopot Cela:
> No through any service AFAIK.
> You can do a ContextInjectionFactory.invoke(handler.getObject(),
> Execute.class, context); where handler is your MHandler and context is
> the context your handler will use as an injection supplier (where the
> values will come from) but I am not sure it is a good idea to use it
> this way although it depends on the specific case.
There's no such method. The executeHandler expects a ParametrizedCommand, not a MHandler]]>2012-11-17T13:08:17-00:00Re: How to execute a Handler by id?
https://www.eclipse.org/forums/index.php/mv/msg/440240/986759/#msg_986759
Eclipse Command Service for an example.]]>Lars Vogel2012-11-21T14:47:30-00:00