Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Action<->command hookup
Action<->command hookup [message #277306] Wed, 08 December 2004 11:20
Eclipse UserFriend
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
Previous Topic:How to change the Welcome Page
Next Topic:how to refresh an editor
Goto Forum:
  


Current Time: Tue Jul 22 08:35:57 EDT 2025

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

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

Back to the top