Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP Key Bindings
RCP Key Bindings [message #437891] Thu, 06 October 2005 19:20 Go to next message
Lokesh Shah is currently offline Lokesh Shah
Messages: 19
Registered: July 2009
Junior Member
I have a RCP application which includes a text editor which extends Eclipse's text editor. I am
defining my key bindings by defining a "org.eclipse.ui.bindings" and a corresponding
"org.eclipse.ui.commands" extension. With regards to key bindings, I have two questions:
* One of the key bindings I have is ctrl+L. This however clashes with "Go to Line" binding of the
text editor. How do I override the "Go to Line" action with my action?
* If I go to General | Keys preference dialog, I see numerous bindings which have nothing to do with
my RCP. For example: ctrl+B -> "Build All". Building something has no meaning in my RCP. How can I
have it not appear in the preference dialog.

Regards,
Lokesh
Re: RCP Key Bindings [message #437919 is a reply to message #437891] Thu, 06 October 2005 23:50 Go to previous messageGo to next message
Lokesh Shah is currently offline Lokesh Shah
Messages: 19
Registered: July 2009
Junior Member
> * One of the key bindings I have is ctrl+L. This however clashes with
> "Go to Line" binding of the text editor. How do I override the "Go to
> Line" action with my action?
Figuredout this one. I needed to define my own context and make "org.eclipse.ui.textEditorScope" as
its parent.

That leaves the 2nd problem. Anyone know how to hide the keys bindings that are not needed?

~Lokesh
Re: RCP Key Bindings [message #437924 is a reply to message #437919] Fri, 07 October 2005 07:33 Go to previous message
Tom Hofmann is currently offline Tom Hofmann
Messages: 770
Registered: July 2009
Senior Member
Lokesh Shah wrote:
>> * One of the key bindings I have is ctrl+L. This however clashes with
>> "Go to Line" binding of the text editor. How do I override the "Go to
>> Line" action with my action?
>
> Figuredout this one. I needed to define my own context and make
> "org.eclipse.ui.textEditorScope" as its parent.
>
> That leaves the 2nd problem. Anyone know how to hide the keys bindings
> that are not needed?

AFAIK you cannot remove commands (file bugs if a command is there that
you deem wrong in an RCP app). You can however remove a keybinding for a
command in your context by creating a binding with the same key sequence
and an empty command attribute (see the bindings extension point and
search for "deletion").

-tom
Previous Topic:How to embed a view in a Dialog
Next Topic:JavaFileEditorInput is used as default for File Open gesture.
Goto Forum:
  


Current Time: Tue Sep 23 10:32:39 GMT 2014

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

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