[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Binding label from command addition

Ben,

My keyboard calls the key Delete in one place and "Del" in another (as with Insert and Ins). I believe all these will appear in a .properties file somewhere and would be translated if you had the translation fragments installed (which aren't available for Eclipse 3.3). Generally translation is done by using %<key> in the plugin.xml, specifying Bundle-Localization: plugin in the MANIFEST.MF, and the defining that <key> in plugin.properties.

Ben Brown wrote:
In switching over some menus to commands I came across the following problem

I have a popup menu contribution that I've added through the org.eclipse.ui.menus extension point, to which I have attached a command. Adding this command allowed me to declare icons and a label for the command on the menu. It also picked up at runtime that the command had an associated binding so it added that to the menu item as well.
Picking up the bindings is certainly a great feature but the problem I'm having is I don't like the label Eclipse decided to use for that binding.


In my case I'm running on Windows Vista on a US - English locale, the binding is to 'DEL' which is then displayed as 'Delete' on the menu. Is there a way to change this display for the binding? There doesn't appear to be anything on the bindings extension point to support an internationalized label.

Any help would be much appreciated.

Thanks!