|Problem with understanding on Action Sets DefinitionID´s and classes. [message #507354]
||Tue, 12 January 2010 23:32
Originally posted by: jccanova.gmail.com|
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
If i can, i can have some predicate logic switching the response of an UI
event based in some context.
Jose Carlos Canova.
Powered by FUDForum
. Page generated in 0.01616 seconds