title: Eclipse Nature-specific Project Properties
body: <p>I am working on an Eclipse plugin with a custom project nature. The nature itself works fine. I need to implement a project-specific properties page that allows the user to customize settings specific to that nature; thus far, I have been unsuccessful and would apppreciate any help. I envision this to be similar to how the Java nature allows one to set project-specific compiler options, formatter settings, etc.</p>
  
  <p>It is crucial that the project settings are stored in the project itself, similar to how Java settings are stored in <code>(project root)/.settings/org.eclipse.jdt.*.prefs</code>. These need to be in source control for that project so the whole team is beholden to the same standards.</p>
  
  <p>Here is what I have so far in the plugin.xml:</p>
  
  <pre><code>  &lt;extension point="org.eclipse.ui.propertyPages"&gt;
      &lt;page id="test.MyOverlayPage"
            name="%Key.PropertyPage"
            class="test.MyOverlayPage"&gt;
        &lt;enabledWhen&gt;
          &lt;instanceof value="org.eclipse.core.resources.IProject"/&gt;
        &lt;/enabledWhen&gt;
      &lt;/page&gt;
    &lt;/extension&gt;
  </code></pre>
  
  <p>This obviously does not restrict the property page by nature the way the Java settings are, but currently this does not show up for <em>any</em> project, let alone ones with the custom nature.</p>
  
  <p>I found the following questions which do not address my specific concern:</p>
  
  <p><a href="https://stackoverflow.com/questions/8953179/create-our-own-property-page-for-project-explorer-eclipse-plugin">Create our own property page for project explorer eclipse plugin</a></p>
  
  <p><a href="https://stackoverflow.com/questions/3525213/eclipse-storing-info-in-project-file">Eclipse: Storing info in .project file</a></p>
  
  <p>I also found this Eclipse help page which is severely lacking in details and I have not been able to get this working based on it:</p>
  
  <p><a href="http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2FresInt_properties.htm" rel="nofollow noreferrer">http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2FresInt_properties.htm</a></p>