Help needed regarding Keybinding (implementing shortcut keys) [message #29763] |
Tue, 01 March 2005 13:53 |
Eclipse User |
|
|
|
Originally posted by: debashreeh.bsil.com
hi,
I need some help regarding keybinding associated with menuManager.
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)
addSceneAction.setId("com.zipc.zipcone.sdd.ui.editors.add");
ActionRegistry
actionReg=ei.getSDDProjectNature().getGrobalActionRegistry() ;
actionReg.registerAction(addSceneAction);
and added the following in plugin.xml:
<extention
point="org.eclipse.ui.commands">
<command
name="%AddScenes"
description="%AddScenes"
category="com.zipc.zipcone.sdd.ui.addScenes"
id="com.zipc.zipcone.sdd.ui.editors.add">
</command>
<keyBinding
string="Ctrl+A"
scope="org.eclipse.ui.globalScope"
command="com.zipc.zipcone.sdd.ui.editors.add"
configuration="org.eclipse.ui.defaultAcceleratorConfiguration ">
</keyBinding>
</extention>
But it's not working when I press Ctrl+A
Can someone highlight on that?
Thanks and regards,
Debashree
Wish you all a good day!!!
Debashree Halder
Systems Engineer
BlueStar Infotech Ltd.
Koramangala,Bangalore
debashreeh@bsil.com
tel: 08051104560-2676
|
|
|
Powered by
FUDForum. Page generated in 0.07814 seconds