Community
Participate
Working Groups
from eclipse.org news group Subject: PDE Error on Nature definition Date: Tue, 14 Aug 2001 15:54:45 -0400 From: Pat McCarthy <patmc@us.ibm.com> Organization: OTI-RTP - Eclipse Jumpstart Team Newsgroups: eclipse.tools I'm not sure this was reported before - I hope not (as it just spent a bit of time hitting the wall on this). (An aside - what will it take to get this newsgroup accessible from a dejanews/google search? Then it would be easy to find any related entries). The PDE support for a nature extension creates the following xml: <extension id="com.ibm.wsweducation.solution.resources.natures" name="eduNature" point="org.eclipse.core.resources.natures"> <nature> <runtime class="com.ibm.wsweducation.solution.resources.ProjectNature"> </runtime> </nature> </extension> This nature could never be added to a project description - a CoreException was thrown. I kept replacing my nature with the JavaNature defined as part of the JDT plugin - and my add nature logic would work fine.... I finally saw why. This is the xml for the JDT JavaNature extension: <extension point="org.eclipse.core.resources.natures" id="javanature" name="Java Nature"> <runtime> <run class="org.eclipse.jdt.internal.core.JavaProject"> </run> </runtime> </extension> And no <nature></nature> tags. When I use the source view for the plug-in editor to fix my ProjectNature xml definition (added <run></run> and removed <nature></nature>) - my nature works fine... Regards, Pat Mc. NOTES: DG (8/16/2001 5:45:43 PM) The problem is with the incorrect nature extension point schema that was created using incorrect reference document. Extension point schema has been fixed. Need to fix the reference document (org_eclipse_core_resources_natures.html in 'doc' directory).
*** Bug 3131 has been marked as a duplicate of this bug. ***
The documentation has been updated to reflect the correct format.
Fixed in v207