Bug 3105 - Incorrect extension point docs (1GILWN6)
Summary: Incorrect extension point docs (1GILWN6)
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: All Windows NT
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 3131 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-10 22:49 EDT by Vlad Klicnik CLA
Modified: 2001-11-01 10:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vlad Klicnik CLA 2001-10-10 22:49:31 EDT
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).
Comment 1 John Arthorne CLA 2001-10-29 17:02:44 EST
*** Bug 3131 has been marked as a duplicate of this bug. ***
Comment 2 John Arthorne CLA 2001-10-29 17:05:57 EST
The documentation has been updated to reflect the correct format.
Comment 3 Rodrigo Peretti CLA 2001-11-01 10:19:09 EST
Fixed in v207