[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: problem in using PropertyTester.

Neha wrote:

<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>

I already said that this will not work. you are using the default variable for visibleWhen ... that's a Collection containing the current selection. <with variable="selection">...</with> would give you the ISelection directly.


Your property tester is typed for a Boolean ... it will never get called, since a Collection is not a Boolean.

PW


-- Paul Webster http://wiki.eclipse.org/Platform_Command_Framework http://wiki.eclipse.org/Command_Core_Expressions http://wiki.eclipse.org/Menu_Contributions http://wiki.eclipse.org/Menus_Extension_Mapping http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm