Adding a property page to a project [message #463267] |
Wed, 07 February 2007 11:09  |
Eclipse User |
|
|
|
Hi,
I am trying to add a property page to a project (similar to the Java
build path page).
I tried using the sample incremental builder (that is what my plugin is
about) and to add the property page template in.
I wasn't able to make the page appear on the project properties.
I tried to change the objectClass to
objectClass="org.eclipse.core.resources.IProject"
and also added a filter:
<filter
name="projectNature"
value="appNature">
</filter>
when I open the project properties the sample property page is missing,
but there are no errors in the log.
help would be appreciated.
below is my full plugin.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<plugin>
<extension
id="appbuilder"
name="Antenna Preprocessor builder"
point="org.eclipse.core.resources.builders">
<builder
hasNature="true">
<run
class="antenna.eclipse.preprocessor.builder.APPBuilder">
</run>
</builder>
</extension>
<extension
id="appNature"
name="Antenna Preprocessor nature"
point="org.eclipse.core.resources.natures">
<runtime>
<run
class="antenna.eclipse.preprocessor.builder.APPNature">
</run>
</runtime>
<builder
id="antenna.eclipse.preprocessor.appbuilder">
</builder>
</extension>
<extension
point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
objectClass="org.eclipse.core.resources.IProject"
nameFilter="*"
id="antenna.eclipse.preprocessor.contribution1">
<action
label="Add/Remove Sample Nature"
class="antenna.eclipse.preprocessor.builder.ToggleNatureAction "
menubarPath="additions"
enablesFor="+"
id="antenna.eclipse.preprocessor.addRemoveNatureAction">
</action>
</objectContribution>
</extension>
<extension
id="xmlProblem"
name="XML Problem"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<persistent
value="true">
</persistent>
</extension>
<extension
id="app.propertypages"
name="Property Pages"
point="org.eclipse.ui.propertyPages">
<page
objectClass="org.eclipse.core.resources.IProject"
name="Sample Page"
class="antenna.eclipse.preprocessor.properties.SamplePropertyPage "
adaptable="true"
id="antenna.eclipse.preprocessor.properties.samplePropertyPage ">
<filter
name="projectNature"
value="appNature">
</filter>
</page>
</extension>
</plugin>
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04699 seconds