Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to create preferences for my project nature
How to create preferences for my project nature [message #803095] Mon, 20 February 2012 23:09 Go to next message
Roshan S. is currently offline Roshan S.
Messages: 125
Registered: July 2009
Senior Member
I've created project nature of my own, and I want to create preferences for when you right-click on my project and go to properties.
I thought this would be an easy thing to do, using the extension point org.eclipse.ui.propertyPages, and I am able to create the preferences. The problem is that the properties show up for all projects. I just want my properties to show for projects with my project nature. There must be a way to do it since so many plugins create project specific preferences.

Can anyone point me in the right direction? Or even an example?

Thank you in advance.

-Roshan
Re: How to create preferences for my project nature [message #805264 is a reply to message #803095] Thu, 23 February 2012 15:00 Go to previous message
Roshan S. is currently offline Roshan S.
Messages: 125
Registered: July 2009
Senior Member
Found it:
<extension
         point="org.eclipse.ui.propertyPages">
      <page
            class="com.company.properties.MyPropertyPage"
            id="com.company.properties.samplePropertyPage"
            name="My Project">
         <enabledWhen>
            <instanceof
                  value="org.eclipse.core.resources.IProject">
            </instanceof>
         </enabledWhen>
         <filter
               name="nature"
               value="com.company.natures">
         </filter>
      </page>
   </extension>
Previous Topic:Adding jar in deployment assembly
Next Topic:API Tooling: is no longer API
Goto Forum:
  


Current Time: Sat Sep 20 14:09:38 GMT 2014

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

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