| (Eclipse RCP) How can I add shortcut text after a menu entry in toolbar? [message #893178]
||Tue, 03 July 2012 06:17
| Diao Feng
Registered: July 2012
I want to add shortcut text after the menu entry in toolbar.|
For example, for "copy" menu entry in toolbar, default only a image in toolbar, and the tooltips will be "Copy (Ctrl+C)", what I need is adding "Ctrl + C" after the image of Copy menu entry, I did a lots of search, but can't find more useful material.
Also the action ( such as Copy ) has a shortcut, for example, "Ctrl + C", when our mouse hovers on the menu entry, will show "Copy (Ctrl+C)", but when I use Action.getText(), I only can get "Copy", not "Copy (Ctrl + C)"
Thanks for your help, this issue troubled me couple days.
Now some menu items from toolbar are added in method "fillCoolBar", and others are added from plugin.xml Extensions page.
Powered by FUDForum
. Page generated in 0.01771 seconds