|
Re: Creating dynamic tooltips on a views toolbar [message #516686 is a reply to message #516655] |
Wed, 24 February 2010 18:58 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
|
Hello Andy
I had a similar problem; the only difference with your situation was that my pull-down menu was in the main toolbar not in the view toolbar. I assume that the solution will work also for a view toolbar (not tested this).
My solution was to create a dynamic contribution to the main toolbar and in the code of the dynamic contribution I was able to change the tooltip (actually I changed the image but I could change also the tooltip if I needed to).
I started from this example http://eclipsesource.com/blogs/2009/03/31/replacing-the-pers pective-switcher-in-rcp-apps/ and I needed that my toolbar contribution to be a pull-down menu containing the existing perspectives. When the perspective was changed I needed that image of the icon of the pull-down contribution to be changed to the image of the new perspective. Also another change was to make the menu appear also when the image was clicked (the default implementation is to have the menu appear only when the arrow is clicked).
HTH
Catalin
Time is what you make of it.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03582 seconds