[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Re: problem in using PropertyTester.
|
Hi Daniel ,
I tried that too . but still the propertyTester is never fired.
please help me with that. can you please explain me what exactly namespace
sholud contain. Because i think the namespace that i m specifying is
improper.
"Daniel Krügler" <dsp@xxxxxxx> wrote in message
news:h2knns$qrk$1@xxxxxxxxxxxxxxxxxxxx
> Neha wrote:
>> Hi kevin ,
>> I tried with this also but still my class is never called.I want a menu
>> to
>> be visible invisible depending on the property. And I make the class
>> return
>> the property to be true so my menu is visible. but it never enters the
>> testers class.
>> below is the code what i m trying to do
>>
>> <extension
>>
>> point="org.eclipse.core.expressions.propertyTesters">
>>
>> <propertyTester
>>
>> class="neha.samplePropertyTester"
>>
>> id="src.neha.testproperty"
>>
>> namespace="src.neha.testproperty.namespace"
>>
>> properties="test"
>>
>> type="java.lang.Boolean">
>>
>> </propertyTester>
>>
>> </extension>
>>
>>
>>
>> <visibleWhen
>>
>> checkEnabled="false">
>>
>> <test
>>
>> forcePluginActivation="false"
>>
>> property="src.neha.testproperty.namespace.test">
>>
>> </test>
>>
>> </visibleWhen>
>
> A possible reason for not loading your PropertyTester class
> could be that you set the forcePluginActivation element in the
> ext.pt to false as shown above. So, if your plugin containing
> the tester has not been loaded yet, the class will not be
> instantiated and thus used. I would give it a try to set the
> forcePluginActivation element to true.
>
> HTH & Greetings from Bremen,
>
> Daniel Krügler
>