Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » any references to command handler syntax?
any references to command handler syntax? [message #493796] Wed, 28 October 2009 02:47 Go to next message
Dave Combs is currently offline Dave CombsFriend
Messages: 21
Registered: July 2009
Junior Member
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: Wed, 28 October 2009 02:47]

Report message to a moderator

Re: any references to command handler syntax? [message #494002 is a reply to message #493796] Wed, 28 October 2009 17:26 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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 Apr 20 02:19:26 GMT 2024

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

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

Back to the top