Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to enable handler with condition like context1 || context2 || context3
How to enable handler with condition like context1 || context2 || context3 [message #1043425] Wed, 17 April 2013 17:42 Go to next message
Sunny          is currently offline Sunny Friend
Messages: 37
Registered: September 2011
Member
I have a handler tag inside my plugin.xml like below:

<handler
class="fooHandler"
commandId="fooCommand">
<enabledWhen>
<with variable="activeContexts">
<or>
<equals value="fooCtxt1"/>
<equals value="fooCtxt2"/>
<equals value="fooCtxt3"/>
</or>
</with>
</enabledWhen>
</handler>

But its not working! I also tried

<iterate operator="or">
<ctxt1/>
<ctxt2/>
<ctxt3/>
</iterate>

Please help me!!
Re: How to enable handler with condition like context1 || context2 || context3 [message #1044100 is a reply to message #1043425] Thu, 18 April 2013 13:42 Go to previous message
Sunny          is currently offline Sunny Friend
Messages: 37
Registered: September 2011
Member
I fixed it like this :

<iterator operator="or">
<or>
<equals value = "ctx1"/>
<equals value = "ctx2"/>
<equals value = "ctx3"/>
</or>
</iterate>

but why is "or" not working in the operator="or"?
and if I remove that it won't work!

Eclipse experts , please throw some light on this!

Thanks.
Previous Topic:Common Navigator Framework (CNF) Sorting Problem
Next Topic:Dragging into a Common Navigator problem.
Goto Forum:
  


Current Time: Thu Apr 25 13:11:01 GMT 2024

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

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

Back to the top