|enabledWhen with custom WorkbenchWindowControlContribution [message #489639]
||Mon, 05 October 2009 08:57
| Thomas ichstädt-Engelen
Registered: July 2009
i've created my own Toolbar-Contribution (a comboBox). I created a new Class 'FileChooser' which extends WorkbenchWindowControlContribution. After changing the combos value a command get's executed. So far so good ...
Now i'd like to control the combo's enablement in the "normal" menu-way by evaluating the enabledWhen tags of the associated Command/Handler combination. I noticed the isEnabled()-method which is never called in the widgets lifecycle unfortunately.
What is the best way to participate in the declarative enableWhen configurationin plugin.xml. Extend another BaseClass (which one?). I didn't find any information regarding that issue.
Any help is greatly appreciated,
Powered by FUDForum
. Page generated in 0.01920 seconds