How can I change the button that is in the view
I have a toggle button that is on the Viewer![alt text][1]
the problem is , when it turn on , How can reco开发者_高级运维ver the last status . like even though the default value is false , how to set it true programmatically.
In the plugin.xml , the default status is true.
If have contributed it via commands, you need to switch the state of the command (see HandlerUtil.toggleCommandState() method) and then call ICommandService.refreshElements() to update all the contributions for that command
精彩评论