How to disable/enable view toolbar menu/action in Eclipse Plugin Development [message #864708] |
Mon, 30 April 2012 03:55 |
Agung Pratama Messages: 2 Registered: April 2012 |
Junior Member |
|
|
I have View that extends ViewPart. In this view, I want to add toolbar menu. What I know, we can add toolbar menu by using ActionContributionItem or Action, and add it to ToolBarMenu from createPartControl method in ViewPart. But what I don't know, how we disable/enable the toolbar menu programmatically. So basically, I want to add Play, Stop, and Pause button to toolbar view. So at first, the Play button is on enabled mode, and the others are disabled. When I pressed Play button, it is disabled, and others will be enabled. For more details, what I want to achieve is something like the image I attached.
In the red circle are disabled button, and in the blue circle are enabled button.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03549 seconds