Binding Shortcut Key from Extension Points in a Multipage Editor [message #604930] |
Tue, 09 March 2010 12:59 |
El Mariachi Messages: 11 Registered: February 2010 |
Junior Member |
|
|
Hi all,
I've now spent 2 days trying to implement a shortcut key for a plugin project which represents a MultiPageEditor. I don't manage to get it working. My editor is composed of two pages, and I would like to perform an action when user press "F5" key whatever the active page is.
Extension Points Used :
A/ org.eclipse.ui.commands
=> New Command
_ command ID defined
_ defaultHandler defined to the class I would like the shorcut action to be executed. The class implements IHandler
B/ org.eclipse.ui.bindings
=> New Scheme
_ ID defined
_ Name defined
=> New Key
_ sequence : F5
_ commandID, the ID of the command defined in step A/
_ schemeID : the ID of the Scheme defined just before
_ contextID : leaved to default value "org.eclipse.ui.contexts.window"
Unfortunately, when I open my editor and press F5, I never enter the execute method provided by the IHandler interface. Am I foregetting something? Is it the good way to do?
Thanks!
--
Emiliano El Mariachi
Emiliano El Mariachi
|
|
|
|
Powered by
FUDForum. Page generated in 0.02364 seconds