Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » enabledWhen with custom WorkbenchWindowControlContribution
enabledWhen with custom WorkbenchWindowControlContribution [message #489639] Mon, 05 October 2009 12:57 Go to next message
Thomas  ichstädt-Engelen is currently offline Thomas ichstädt-EngelenFriend
Messages: 50
Registered: July 2009
Member

Hi,

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,

Thomas E.-E.
Re: enabledWhen with custom WorkbenchWindowControlContribution [message #489653 is a reply to message #489639] Mon, 05 October 2009 13:43 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You want the eclipse Platform or RCP forums.

PW


Previous Topic:Timeline widget
Next Topic:Some widgets display inconsistently in Windows XP and Vista
Goto Forum:
  


Current Time: Fri Dec 19 23:38:45 GMT 2014

Powered by FUDForum. Page generated in 0.13121 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software