Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » How to execute a Handler by id?
How to execute a Handler by id? [message #985901] Fri, 16 November 2012 10:52 Go to next message
Eclipse UserFriend
Is there a way to execute a concrete Handler by id?
Re: How to execute a Handler by id? [message #985959 is a reply to message #985901] Fri, 16 November 2012 16:06 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: How to execute a Handler by id? [message #986005 is a reply to message #985959] Sat, 17 November 2012 06:18 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: How to execute a Handler by id? [message #986011 is a reply to message #986005] Sat, 17 November 2012 08:08 Go to previous messageGo to next message
Eclipse UserFriend
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

[Updated on: Sat, 17 November 2012 08:09] by Moderator

Re: How to execute a Handler by id? [message #986759 is a reply to message #986011] Wed, 21 November 2012 09:47 Go to previous message
Eclipse UserFriend
See Eclipse Command Service for an example.

[Updated on: Wed, 21 November 2012 09:47] by Moderator

Previous Topic:How to implement empty grey part-area in e4?
Next Topic:How to pass Keyboard Events to the MPart?
Goto Forum:
  


Current Time: Wed Jul 23 08:34:21 EDT 2025

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

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

Back to the top