activeWhen and enabledWhen problem [message #334167] |
Fri, 23 January 2009 02:21 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: kathir.atc.tcs.com
Hi,
[XML]
<activeWhen>
<with
variable="activePartId">
<equals
value="com.seq.view.DatabaseManagerView">
</equals>
</with>
</activeWhen>
<enabledWhen>
<with
variable="myVariable">
<equals
value="true">
</equals>
</with>
</enabledWhen>
[XML]
when the 'myVariable' is false and when i click on the DatabaseManagerView ,
the command is inactive - which is right. But when i click on a different
view say Package Explorer the command gets enabled ( the toolbar icon gets
enabled ). Isnt that supposed to remain inactive because the active part is
changed and doesnot meet the activeWhen condition.
Kathir.
|
|
|
|
|
Re: activeWhen and enabledWhen problem [message #334184 is a reply to message #334170] |
Fri, 23 January 2009 18:08 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: kathir.atc.tcs.com
Thanks prakash..I had a default handler which was causing it to enable.
kathir.
"Prakash G.R." <grprakash@gmail.com> wrote in message
news:glboer$k7v$1@build.eclipse.org...
> You might be having another handler which is active in other view. Did you
> define a default handler for that command?
>
> - Prakash
> --
>
> http://blog.eclipse-tips.com
>
> "Kathir" <kathir@atc.tcs.com> wrote in message
> news:glb9jm$9qs$1@build.eclipse.org...
>> Hi,
>>
>> [XML]
>> <activeWhen>
>> <with
>> variable="activePartId">
>> <equals
>> value="com.seq.view.DatabaseManagerView">
>> </equals>
>> </with>
>> </activeWhen>
>> <enabledWhen>
>> <with
>> variable="myVariable">
>> <equals
>> value="true">
>> </equals>
>> </with>
>> </enabledWhen>
>> [XML]
>>
>> when the 'myVariable' is false and when i click on the
>> DatabaseManagerView , the command is inactive - which is right. But when
>> i click on a different view say Package Explorer the command gets enabled
>> ( the toolbar icon gets enabled ). Isnt that supposed to remain inactive
>> because the active part is changed and doesnot meet the activeWhen
>> condition.
>>
>> Kathir.
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03770 seconds