[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Keybinding:shortcut key
|
- From: debashreeh@xxxxxxxx (Debashree Halder)
- Date: Wed, 2 Mar 2005 05:56:07 +0000 (UTC)
- Newsgroups: eclipse.newcomer
- Organization: Eclipse.org
- User-agent: NewsPortal/0.34 (http://florian-amrhein.de/newsportal/)
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