Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » deprecated key binding
deprecated key binding [message #464812] Thu, 15 March 2007 16:50 Go to next message
Eclipse UserFriend
Originally posted by: m.hybler.aegis.cz

This is the part of my plugin.xml

------------------------------------------------------------ ----
<extension
point="org.eclipse.ui.commands">
<command
id="cz.aegis.cms.viewer.deleteCommand"
name="deleteCommand"/>
<keyBinding
command="cz.aegis.cms.viewer.deleteCommand"
configuration="cz.aegis.cms.viewer.keyConfiguration"
contextId="org.eclipse.ui.globalScope"
string="Ctrl+Shift+D"/>
<keyConfiguration
id="cz.aegis.cms.viewer.keyConfiguration"
name="keyConfiguration"
parent="org.eclipse.ui.defaultAcceleratorConfiguration"/>
</extension>
------------------------------------------------------------ ----

But my eclipse says that keyconfiguration and keybinding is deprecated.I
can find other way to set keybinding for my action. In eclipse FAQ it is
described by this way. Everything goes right but is it the right way?
Should anyone help me?
Tahnks a lot Michal
Re: deprecated key binding [message #464879 is a reply to message #464812] Fri, 16 March 2007 20:18 Go to previous message
No real name is currently offline No real nameFriend
Messages: 38
Registered: July 2009
Member
Michal Hybler wrote:
> This is the part of my plugin.xml
>
> ------------------------------------------------------------ ----
> <extension
> point="org.eclipse.ui.commands">
> <command
> id="cz.aegis.cms.viewer.deleteCommand"
> name="deleteCommand"/>
> <keyBinding
> command="cz.aegis.cms.viewer.deleteCommand"
> configuration="cz.aegis.cms.viewer.keyConfiguration"
> contextId="org.eclipse.ui.globalScope"
> string="Ctrl+Shift+D"/>
> <keyConfiguration
> id="cz.aegis.cms.viewer.keyConfiguration"
> name="keyConfiguration"
> parent="org.eclipse.ui.defaultAcceleratorConfiguration"/>
> </extension>
> ------------------------------------------------------------ ----
>
> But my eclipse says that keyconfiguration and keybinding is deprecated.I
> can find other way to set keybinding for my action. In eclipse FAQ it is
> described by this way. Everything goes right but is it the right way?
> Should anyone help me?
> Tahnks a lot Michal

Yes, look at the 'org.eclipse.ui.bindings' extension. This is what I
use (including the 'commands' extention...):

<extension
point="org.eclipse.ui.commands">
<command
categoryId="com.fred.category.commands"
description="Add client"
id="com.fred.clientMgr.addClientCmd"
name="Add client"/>
.
.
.

<extension
point="org.eclipse.ui.bindings">
<key
commandId="com.fred.clientMgr.addClientCmd"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+C"/>
</extension>

works like a charm.
Previous Topic:Icon for submenu
Next Topic:crash using SWT_AWT with JDK 1.4
Goto Forum:
  


Current Time: Fri Sep 13 02:07:52 GMT 2024

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

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

Back to the top