Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP PropertyTester doesn't work
RCP PropertyTester doesn't work [message #990457] Wed, 12 December 2012 15:17
Bartosz Popiela is currently offline Bartosz PopielaFriend
Messages: 21
Registered: March 2012
Junior Member
I'm developing some Eclipse RCP 3.5.1 application and trying to add my custom command to popup in MyNavigatorView for paths in workspace matching some pattern, for example "MyProject/MyDir1/*". As I know, IVariableResolver support isn't implemented in Eclipse RCP 3.5. Is there any other elegant way to do such thing?
I also tried to add custom property tester, but it doesn't work.
Here is my plugin.xml:

<extension point="org.eclipse.ui.menus">
    <menuContribution locationURI="popup:MyNavigatorView.popupMenu">
        <command commandId="" label="my command label"
            style="push" >
                <with variable="activeMenuSelection">
                    <iterate ifEmpty="false">
                        <adapt type="org.eclipse.core.resources.IFolder">
<!--                            <test property="" value="MyDirectory" />   -->  <!-- such property tester works ! -->
                                <test property="my.plugin.dirtype" value="MyDirectory" />

<extension point="org.eclipse.ui.commands">
    <command description="Do something with a model element" id=""
        name="Do Something">

<extension point="org.eclipse.ui.handlers">


<extension point="org.eclipse.core.expressions.propertyTesters">

my.plugin.DirTypePropertyTester class extends org.eclipse.core.expressions.PropertyTester, but test method isn't called.

Any ideas what is wrong?

[Updated on: Wed, 12 December 2012 15:18]

Report message to a moderator

Previous Topic:Retrieving the SourceProvider
Next Topic:When are menu contributions from plugin.xml added?
Goto Forum:

Current Time: Tue Dec 07 22:31:57 GMT 2021

Powered by FUDForum. Page generated in 0.02189 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top