Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:52 Go to next message
Alex Kipling is currently offline Alex KiplingFriend
Messages: 260
Registered: July 2012
Senior Member
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 21: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 11:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
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 13: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 13:09] by Moderator

Report message to a moderator

Re: How to execute a Handler by id? [message #986759 is a reply to message #986011] Wed, 21 November 2012 14:47 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

See Eclipse Command Service for an example.

[Updated on: Wed, 21 November 2012 14:47]

Report message to a 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: Fri Apr 19 02:13:03 GMT 2024

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

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

Back to the top