Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problem with understanding on Action Sets DefinitionID´s and classes.
Problem with understanding on Action Sets DefinitionID´s and classes. [message #507354] Tue, 12 January 2010 23:32 Go to next message
Eclipse UserFriend
Originally posted by:


Plugin Development (eclipse 3.5).

I´m not aware if i´m right in this understanding by on my rcp test here i´m
moving the ActionSet definition from hard code (in the advisor) to the
The ActionSet panel properties have some important fields that are not
obligatory : the "definitionId" and the "class".

The definitionId states that:

"definitionId - Specifies the command that this action will handle. By
specifying and action, the key binding service can assign a key sequence to
this action. See the extension point "

What does it mean "by specifying and action" isnt "by specifying an action"

I understood that when you specify the ID the delegate class will override
my "command default handler class" (which makes sense since im working with
the extension concept)...
so i´ve defined a default handler in my command. the action will override
the default handler (defined in the command panel) passing as a parameter
(IAction) in the run method of the delegate class.
Is there any way to get retrieve the "default handler" (suppose that i want
to execute the original handler to get the return type).......shall i have
the use the
ServiceLocator to get the HandlerService and then retrieve the original
object (the default handler)?

If im right in this assumption i see the light :) . like i can use the
plugin.xml to modify the behavior creating new activities in the user
interface without altering the interface and the user will not beware of
that (which is not a bad idea :P).... but the question is... how to
enable/disable an action set at run time? and also can i override this
action (which already overrided the "default handler" of the command) with
another action?

If i can, i can have some predicate logic switching the response of an UI
event based in some context.


Jose Carlos Canova.

Re: Problem with understanding on Action Sets DefinitionID´s and classes. [message #507542 is a reply to message #507354] Wed, 13 January 2010 19:29 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member


If you already have a command and a handler, what do you need actionSets
for exactly? ActionSets are the legacy way to extend the main menu bar
and main toolbar, and will execute an IActionDelegate.

ActionSet visibility is tied to the perspective (see


Paul Webster .platform.doc.isv/guide/workbench.htm

Previous Topic:How to specify default fonts in an RCP app
Next Topic:Reload / reset perspective
Goto Forum:

Current Time: Sun May 27 01:03:51 GMT 2018

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

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

Back to the top