Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Help needed regarding Keybinding (implementing shortcut keys)
Help needed regarding Keybinding (implementing shortcut keys) [message #29763] Tue, 01 March 2005 13:53
Eclipse UserFriend
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
Previous Topic:How do I test servlets?
Next Topic:SWT
Goto Forum:
  


Current Time: Fri Dec 27 13:12:31 GMT 2024

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

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

Back to the top