[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] propertyPages problem - property page doesn't appear
|
- From: Rick Horowitz <rickhoro@xxxxxxxxxxxxx>
- Date: Fri, 20 Dec 2002 14:16:31 +0000
- Newsgroups: eclipse.tools
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
I'm trying to add a property page to my plugin for inclusion in the
properties for a project with nature "com.xyz.MyProjectNature". The page
doesn't appear, nor does a breakpoint get hit, at the start of my
createContents(Composite parent) method.
I have verified that "com.xyz.MyProjectNature" is indeed set for the
project in question, through other means.
My plugin.xml looks like this:
<extension point="org.eclipse.ui.propertyPages">
<page name="Location Page"
id="com.xyz.ui.projectconfig.LocationPropertyPage"
objectClass="org.eclipse.core.resources.IProject"
class="com.xyz.ui.projectconfig.LocationPropertyPage">
<filter name="nature" value="com.xyz.MyProjectNature"/>
</page>
</extension>
My class is follows the pattern from
org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage from the
JDT UI plugin. The skeleton looks like this:
public class EJBLocationPropertyPage extends PropertyPage implements
IStatusChangeListener {
/*
* @see PreferencePage#createControl(Composite)
*/
protected Control createContents(Composite parent) {
}
private IProject getProject() {
}
/*
* @see IPreferencePage#performOk
*/
public boolean performOk() {
}
/**
* @see IStatusChangeListener#statusChanged
*/
public void statusChanged(IStatus status) {
}
}
I would expect that a breakpoint set at the start of createContents()
would be hit when I select the Properties from the popup menu for the
project, but nothing happens - any idea why?
Thanks,
Rick