|
Re: Binding label from command addition [message #325681 is a reply to message #325676] |
Mon, 25 February 2008 16:54 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
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!
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03235 seconds