Community
Participate
Working Groups
The command uses translation for example %commands.save The HandledToolItem refers to the command (without defining its text again, Label is empty) and without defining a icon. -> The key is not replaced.
Dirk, can you have a look?
Same for menu entries without label
Sorry, I don't understand that. If I create a menu entry without a label, e.g. HandledMenuItem in a File menu in the main menu, then nothing will be shown. I am not aware of a feature that automatically sets the name of the command as label of a menu item. I'm testing on Windows 7 and an empty menu entry is shown in that case. AFAIK you always have to specify the label of a menu or tool item.
(In reply to Dirk Fauth from comment #3) > Sorry, I don't understand that. > > If I create a menu entry without a label, e.g. HandledMenuItem in a File > menu in the main menu, then nothing will be shown. I am not aware of a > feature that automatically sets the name of the command as label of a menu > item. > > I'm testing on Windows 7 and an empty menu entry is shown in that case. > AFAIK you always have to specify the label of a menu or tool item. Without translation the text from the command is used, if you do not specify a text on the menu / toolitem.
New Gerrit change created: https://git.eclipse.org/r/42888
Gerrit change https://git.eclipse.org/r/42888 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=81d5449bd87bd5604d0e988fdc910796cf6c725e
Thanks Dirk, looks good.