Creating dynamic tooltips on a views toolbar [message #516655] |
Wed, 24 February 2010 11:59  |
Eclipse User |
|
|
|
Hi,
I have a view which contains a table and have declared a menu on the toolbar which allows us to filter the contents of the table. I would like to provide a tooltip on the button generated on the toolbar which describes the current state of the filter but it seems that I am not able to modify the tooltip.
The menu on the toolbar is declared in the plugin.xml as follows
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="toolbar:com.mycompany.MyView">
<command
commandId="com.mycompany.ui.filters.menu"
icon="icons/filter.gif"
label="Filter Menu"
style="pulldown"
tooltip="Filter Menu"
</command>
</menuContribution>
</extension>
The pull down menu is generated and functions correctly. But it does seem that the tooltip text ('Filter Menu') cannot be changed programatically.
Any help in how to solve this would be appreciated
Thanks
Andy
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.25143 seconds