Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » What is replacement for ExecutionEvent parameter(e4 handler parameters)
What is replacement for ExecutionEvent parameter [message #1754841] Thu, 23 February 2017 02:59 Go to next message
John Bodkin is currently offline John BodkinFriend
Messages: 39
Registered: November 2011
Member
What is the way to replace ExecutionEvent parameter to a handler execute method?
I'm migrating an 3.x RCP to e4 and a handler needs the ExecutionEvent to get the trigger.
public Object execute(ExecutionEvent event) {
  if ((event.getTrigger() instanceof Event) && (((Event) event.getTrigger()).keyCode != 0)) {
      //do stuff
  }
}

What do I put as the parameter to my @Execute method in order to get the data I need?

Thanks
Re: What is replacement for ExecutionEvent parameter [message #1754919 is a reply to message #1754841] Fri, 24 February 2017 01:04 Go to previous message
John Bodkin is currently offline John BodkinFriend
Messages: 39
Registered: November 2011
Member
Found the answer.

http://www.programcreek.com/java-api-examples/index.php?api=org.eclipse.e4.core.di.annotations.Execute
Previous Topic:Dark Theme GTK working with KDE Plasma 5
Next Topic:Eclipse 4 - 3.x Bridge no available
Goto Forum:
  


Current Time: Thu Sep 21 07:00:05 GMT 2017

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

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