Skip to main content



      Home
Home » Newcomers » Newcomers » Keybinding:shortcut key
Keybinding:shortcut key [message #29793] Wed, 02 March 2005 00:56
Eclipse UserFriend
Originally posted by: debashreeh.bsil.com

hi,


I need help regarding keybinding.

I just followed following code about keybinding and also registered the
action.(If it runs properly then the action would be evoked by pressing
Ctrl+A, where addSceneAction is the necesary action,the action is already
bound to a context menu)

In plugin.xml:

<extension
point="org.eclipse.ui.commands">

<command
name="AddScenes"
description="%AddScenes"
category="com.zipc.zipcone.sdd.viewCategory"
id="com.zipc.zipcone.sdd.ui.editors.add">
</command>

<keyBinding
string="Ctrl+A"
scope="org.eclipse.ui.globalScope"
commandId="com.zipc.zipcone.sdd.ui.editors.add"
configuration="org.eclipse.ui.defaultAcceleratorConfiguration "
keyConfigurationId="org.eclipse.ui.defaultAcceleratorConfiguration "/>


in .java file

addSceneAction.setActionDefinitionId("com.zipc.zipcone.sdd.ui.editors.add ");
ActionRegistry
actionReg=ei.getSDDProjectNature().getGrobalActionRegistry() ;
actionReg.registerAction(addSceneAction);

but when I run the prog. nothing happens upon pressing Ctrl+A key.I've
read previous posts regarding this keybinding...but nothing comes out (I
couldn't understand any fault in my code).
Can anyone help...It's urgent..I'm under clients pressure.

-Debashree
S/W Engg.
BlueStar Infotech
Bangalore
India
Previous Topic:Eclipse hangs on startup
Next Topic:Context menus for default editors
Goto Forum:
  


Current Time: Sun Sep 28 00:36:22 EDT 2025

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

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

Back to the top