Key binding for action in Eclipse 3.1 ? [message #289198] |
Tue, 02 August 2005 03:58  |
Eclipse User |
|
|
|
I would like to bind a keyboard shortcut to one of my actions. This
particular action is a refactoring operation ("Rename...") that operates
on a custom editor that I've implemented myself. This operation is
located in the "Source" menu, which is only visible when an instance of
the custom editor is active.
This is was my best guess so far, I added this to plugin.xml
<extension point="org.eclipse.ui.bindings">
<key sequence="F2"
commandId="defid.source.menu.Rename"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration">
</key>
</extension>
But this did not work. Even though I see the action in the source menu
(and can use it by clicking on it), nothing happens when I click the F2
button. Nor does any key binding label appear next to the "Rename..."
menu item.
I've read about a zillion different ways to add key bindings to actions.
Which method is the latest one? I'm using Eclipse 3.1 at the moment.
regards,
martin
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04617 seconds