|[solved] Enable buttons [message #766838]
||Fri, 16 December 2011 14:14
Registered: July 2011
I'm trying to enable some buttons in my toolbar after some action has been executed.
The plugin.xml looks like this:
The command to be enabled:
And the contribution to the toolbar:
The command which is supposed to enable the button calls:
This call does not have an immediate effect and I can't figure out why.
Is there a way to force the toolbar to redraw itself? It does so if I call an instance of TitleAreaDialog, but that's not the desired behaviour, the buttons are supposed to be enabled after I setEnabled(true).
It does not work with an <enableWhen> in the xml either, the change is not immediate.
I would be very pleased, if someone helped me!
[Updated on: Sat, 17 December 2011 12:56]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02251 seconds