Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding Key Binding to Command(Key Binding is not available at all places)
Adding Key Binding to Command [message #1118190] Fri, 27 September 2013 06:36
sajja Phani is currently offline sajja PhaniFriend
Messages: 26
Registered: August 2011
Junior Member
Hi All,

I have a command. I have added this command to different parts in the workbench (editor, project explorer, outline).

I have added the keybinding as

      <key
            commandId="my.command.id"
            contextId="my.context.id"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
            sequence="Key Sequence">
      </key>


In this one my.context.id is the editor context which is overridden one from 'org.eclipse.ui.textEditorScope'

Now Key binding is available in the editor context. In other contexts, (explorer, outline) it is not available.

Is there something I am missing for enabling key binding at other places.

How to do it.

--
Thanks
Sajja
Previous Topic:error during RCP product build using PDE.
Next Topic:CoolBar ContributionItem ignored in E4
Goto Forum:
  


Current Time: Thu Dec 18 11:36:07 GMT 2014

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

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