Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Binding Shortcut Key from Extension Points in a Multipage Editor
Binding Shortcut Key from Extension Points in a Multipage Editor [message #519607] Tue, 09 March 2010 12:59 Go to next message
El Mariachi is currently offline El MariachiFriend
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
Re: Binding Shortcut Key from Extension Points in a Multipage Editor [message #523246 is a reply to message #519607] Thu, 25 March 2010 16:10 Go to previous message
El Mariachi is currently offline El MariachiFriend
Messages: 11
Registered: February 2010
Junior Member
Nobody has any idea?

Emiliano El Mariachi
Previous Topic:Files
Next Topic:Binding Shortcut Key from Extension Points in a Multipage Editor
Goto Forum:
  


Current Time: Tue Mar 19 04:22:31 GMT 2024

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

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

Back to the top