|Eclipse actionSet actions enable/disable [message #513066]
||Mon, 08 February 2010 12:15
| No real name
Registered: February 2010
I have successfully added actions to the global toolbar via extension point "actionSet". I have added selection listener to the action. Enabling/Disabling of an action depends on what resource is selected and is handled in the selectionChanged method. |
The enablement of these actions work fine from Package Explorer but it doesn't work when something in view (IViewPart) is selected. It does not fire action's selectionChanged event. I can't figure it out
How to get reference of actions in an actionSet (defined in plugin.xml) programmatically?
How can we associate actionSet with the View so it does fire action's selection changed event on view selection change?
Any help is highly appreciated.
Powered by FUDForum
. Page generated in 0.13714 seconds