Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Controlling handler enablement based on multiple criteria
Controlling handler enablement based on multiple criteria [message #708585] Wed, 03 August 2011 01:01
Eric Jain is currently offline Eric JainFriend
Messages: 266
Registered: July 2009
Senior Member
I have a handler that should be enabled when the current selection contains at least one Foo, but no Bars. The following doesn't quite work (the handler is never enabled):

<handler class="TestHandler" commandId="test">
      <iterate ifEmpty="false" operator="or">
        <instanceof value="Foo"/>
      <iterate ifEmpty="true" operator="and">
          <instanceof value="Bar"/>

Changing the 2nd ifEmpty/operator to and/false -> always disabled; or/false -> always enabled.

Previous Topic:eclipse RCP and Swing
Next Topic:Closing all opened editors at the time of Eclipse launch
Goto Forum:

Current Time: Sat Apr 21 06:19:17 GMT 2018

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

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