Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] How can i change enable/disable state of actions defined by "Acti onSet" extension?

Title: How can i change enable/disable state of actions defined by "ActionSet" extension?

Hello All!

I met a problem with actions enablement!

I have several actions which are grouped into "action set" by coresponding extension in plugin.xml. Logically this actions don't relate to any view or editor, they correspond to my own self-defined perspective.These actions are appeared in Main menu and work fine ("run" methods leads to expected results). But i cann't find a way to control enablement of these actions, because i implement IWorkbenchWindowActionDelegatenot not Action directly.

I tried to use special <enablement> element of "action" extenstion with <systemProperty> condition but don't get necessary behavoir.  Enablement was changed only if SelectionChanged event occured in some View o Editor Part. But such behavoir do not cover situation when execution of one action affect on enable state of other action.

Problem may be simplified to the following situation:
i want to have 2 actions which can change enblement of each other. In other words when i click into one button on main tool bar, another button become disable and vice versa.

Could you help me solve my problem?

With best wishes,
Konstantin Laskovenko,
Mirasoft Ltd, Kiev, Ukraine.
 


Back to the top