Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Override Command Binding
Override Command Binding [message #522197] 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 #524301 is a reply to message #522197] Wed, 31 March 2010 13:16 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:ResourceExceptions
Next Topic:Modifying the behavior of the internal web browser
Goto Forum:
  


Current Time: Sun Jun 16 15:50:20 GMT 2024

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

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

Back to the top