|How to change the caption of a button in the eclipse main toolbar [message #697049]
||Fri, 15 July 2011 08:09
Registered: July 2011
I'm quite new to eclipse (and very new to this forum) and currently developing a small plugin. This plugin contributes a button to the main toolbar. Now, the actual problem is the following:
How can I change the caption of the button programmatically?
The button is already associated with a action and I can change the caption through the "setText()" method. However, I want the caption to change on activation of the MultiPageEditorPart that is a part of my plugin. I don't know how to fetch the action. I don't know how to fetch the widget, which would be an alternative.
I'd like to know as well, how this is done stylistically the right way.
Every input is appreciated.
Powered by FUDForum
. Page generated in 0.02033 seconds