Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Override Command Binding
Override Command Binding [message #522195] Sun, 21 March 2010 01:18 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-nospam-gaurav-vaish.gmail.com

Hi,

Is it possible to change command bindings programmatically instead of the
standard General -> Keys dialog?

I want to override the "Ctrl+N", "Ctrl+O", "Ctrl+S" bindings and execute my
own code directly without showing up the "Selection Command" option (that
one gets by Ctrl+Shift+L)



TIA


Happy Hacking,
Gaurav Vaish
www.mastergaurav.com
Re: Override Command Binding [message #524305 is a reply to message #522195] Wed, 31 March 2010 08:42 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Gaurav Vaish wrote:
> Hi,
>
> Is it possible to change command bindings programmatically instead of the
> standard General -> Keys dialog?

No, at least not without pretending to *be* the keys preference page.

>
> I want to override the "Ctrl+N", "Ctrl+O", "Ctrl+S" bindings and execute my
> own code directly without showing up the "Selection Command" option (that
> one gets by Ctrl+Shift+L)

You can provide a child scheme and then delete those keybindings using
some deletion markers ... see the extension point description for the
format.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:InteractiveSplashHandler and saving state
Next Topic:Command Binding Scheme
Goto Forum:
  


Current Time: Fri Mar 29 02:16:54 GMT 2024

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

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

Back to the top