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 02:36
sajja Phani is currently offline sajja Phani
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: Wed Jul 30 03:19:05 EDT 2014

Powered by FUDForum. Page generated in 0.02083 seconds