Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » any references to command handler syntax?
any references to command handler syntax? [message #493796] Tue, 27 October 2009 22:47 Go to next message
Eclipse UserFriend
I've looked at various e4 demos, and am trying to convert my own project to work under e4. I'm unclear, however, how one figures out the allowed parameters to a command handler execute() method. Various objects registered as handlers take different numbers and types of parameters. I understand the idea of dependency injection, I'm just trying to get some sense of what sorts of objects these execute methods are allowed to use, or a reference to any document anywhere that might define them. Any pointers to documentation? (the wiki page on Commands/Handlers is early enough and high enough that it's got no details of use in actually building myself a working app.)

Any pointers or suggestions would be GREATLY appreciated!
Dave

[Updated on: Tue, 27 October 2009 22:47] by Moderator

Re: any references to command handler syntax? [message #494002 is a reply to message #493796] Wed, 28 October 2009 13:26 Go to previous message
Eclipse UserFriend
This hasn't been defined yet, as we're still working on the story.

Some of the main variables that can be used are already captured in org.eclipse.e4.ui.services.IServiceConstants

You can use anything that can come out of your IEclipseContext ... right now that means OSGi services, some of the new e4 services (like org.eclipse.e4.core.commands.ECommandService), and framework wiring like "selection" and "activePart" ... although the meaning of activePart in an e4 RCP app is not clear.

We will be documenting the information that the framework can provide, it's just not done at the moment.

PW
Previous Topic:styling the menu and menu items?
Next Topic:any references to command handler syntax?
Goto Forum:
  


Current Time: Sat Jul 05 19:34:34 EDT 2025

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

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

Back to the top