[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Help needed regarding Keybinding (implementing shortcut keys)
|
- From: debashreeh@xxxxxxxx (Debashree Halder)
- Date: Tue, 1 Mar 2005 13:53:18 +0000 (UTC)
- Newsgroups: eclipse.newcomer
- Organization: Eclipse.org
- User-agent: NewsPortal/0.34 (http://florian-amrhein.de/newsportal/)
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@xxxxxxxx
tel: 08051104560-2676