Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » PropertyPage enableWhen persistentProperty problem
PropertyPage enableWhen persistentProperty problem [message #1696191] Fri, 22 May 2015 16:19
Hans Maulwurf is currently offline Hans MaulwurfFriend
Messages: 2
Registered: May 2015
Junior Member
Hello,

i have a problem by deleop my plugin for eclipse.

i want to add an propertyPage only for files with the persistent property "TYPE".

I create a file programmatically and set the persistent property

file.setPersistentProperty(
  new QualifiedName("", "TYPE"),
  "Type1");


In my next Step i add a property page via the plugin.xml

     
 <page
            adaptable="true"
            class="propPage.FilePropertyPage"
            id="propPage.FilePropertyPage"
            name="PropPage">
         <enabledWhen>
            <adapt
                  type="org.eclipse.core.resources.IResource">
               <test
                     property="org.eclipse.core.resources.persistentProperty"
                     value="TYPE">
               </test>
            </adapt>
         </enabledWhen>
</page>
 


The property value from the property TYPE is indifferent.

It doesnt work, but when i set persistent tester to:

              
 <test
       property="org.eclipse.core.resources.name"
        value="*.jsp">
</test>


it works fine for JSP-Files. And when i want to get the persistent property TYPE with:

...file.getPersistentProperty ...


it works also fine.

Is it the wrong xml-config or is there another way to archieve the goal.

Thanks Smile
Previous Topic:Plugin Development setup problem (Luna)
Next Topic:Propertypage enable when specific persistentProperty is set in file
Goto Forum:
  


Current Time: Tue Oct 16 00:26:29 GMT 2018

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

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

Back to the top