|
|
|
Re: activeMenuSelection Expression Language [message #127342 is a reply to message #125099] |
Mon, 06 April 2009 12:48 |
Maghen Calinghee Messages: 23 Registered: July 2009 |
Junior Member |
|
|
Hi,
I have other problems on the variable in RAP. I'm using the
"activeFocusControlId" variable in my plugin.xml and more exactly, i use
it to display a popup menu in a Table cell according to the "Data" of the
cell. The problem is that i'm using many Table and i don't register all of
them to the FocusService. So when i display a popup menu, thanks to the
plugin.xml, the "activeFocusControlId" is evaluated to know if i can
display item in the menu. But if the Table is not registered to the
FocusService, the evaluation of the other expressions is stopped.
This is the way i use the "activeFocusControlId".
<definition
id="inClientContext">
<or>
<with
variable="activeFocusControlId">
<equals
value="clientTable">
</equals>
</with>
<with
variable="selection">
<iterate
ifEmpty="false"
operator="and">
<instanceof
value="metadata.client.WrapperClientData">
</instanceof>
</iterate>
</with>
</or>
</definition>
In RAP, the evaluation of the definition "inClientContext" is stopped on
"activeFocusControlId" just before the "selection" test whereas in RCP,
the evaluation goes until the "selection" test if there is no
"activeFocusControlId".
I don't know if this problem is linked to the "activeMenuSelection" bug.
Also i would like to know if we do a test on an "undefined" variable in
the plugin.xml, what will happen? It returns false if i do an "equals"
test on the undefined variable?
If someone knows something about this, i would appreciate.
Thanks.
Maghen
|
|
|
Powered by
FUDForum. Page generated in 0.02506 seconds