Propertytester always executed [message #550701] |
Wed, 04 August 2010 07:45 |
|
Hey all,
i have a problem using my PropertyTester.I registered a popupmenu on my view in the plugin.xml. This popupmenu has a command, where i added a visibleWhen condition. Here is the expression definition:
<definition
id="my.expression.definition">
<with
variable="selection">
<iterate
operator="or">
<not>
<test
property="com.test.my.property">
</test>
</not>
</iterate>
</with>
</definition>
Everything works fine, but now i recognized that the propertyTester is always executed when i select something, even if it is in another perspective and another view?
In my idea, i thought the propertyTester will only be called when i open the popup menu, in the view where i registiered my popup.
Regarding a scenario where i have Propertytester for about 100 properties and every time i open a popupmenu somewhere in the application all these properties will be unnecessarily checked, this would be awful. Is there a way to prevent this?
Thanks a lot,
Thomas
|
|
|
|
|
Re: Propertytester always executed [message #554431 is a reply to message #554222] |
Mon, 23 August 2010 06:50 |
|
Hi Rainer,
i didn´t test your example yet, but if it works i´m wondering why i have to define a locationURI for the menuContribution with my view Id.
I registered the popup menu with following locationURI:
popup:my.View.id?after=additions
I assumed that if i define this locationURI all checks are only done if i´m within the defined view, or in other words, the system does the
<with variable="activePartId">
<equals value="YOUR_VIEW_ID"/>
</with>
check for me. Otherwise i see no sense in using the view id in the locationURI.
Thanks alot + Greetings from germany
Thomas
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03570 seconds