Action<->command hookup [message #277306] |
Wed, 08 December 2004 11:20 |
Eclipse User |
|
|
|
Does anyone know why, under Eclipse 3.0, to get a <command> entry (with an
associated keyboard shortcut specified) in a plugin.xml file to invoke an
action (using that shortcut), you have to write something like the
following:
HandlerSubmission submission = new HandlerSubmission(null, null,
null, commandId, new ActionHandler(action), Priority.MEDIUM);
PlatformUI.getWorkbench().getCommandSupport().addHandlerSubm ission(submission);
(and then removing the handler submission later on)
when, in Eclipse 2.1, only the following was required:
action.setActionDefinitionId(commandId);
Why does Eclipse 3.0 demand the former, in addition to the latter?
--Jeff
|
|
|
Powered by
FUDForum. Page generated in 0.03913 seconds