Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332804 - template in facet extesion point requires deprecated preset element
Summary: template in facet extesion point requires deprecated preset element
Status: RESOLVED WONTFIX
Alias: None
Product: WTP Common Tools
Classification: WebTools
Component: Faceted Project Framework (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows 7
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact: Konstantin Komissarchik CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 20:03 EST by Lee Wang-soo CLA
Modified: 2011-01-05 14:45 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 Lee Wang-soo CLA 2010-12-16 20:03:46 EST
Build Identifier: M20100909-0800

'template' element in extension-point schema 'org.eclipse.wst.common.project.facet.core.facets'
requests 'preset' element.
But, 'preset' element is deprecated.

Here is schema:
<element name="template">
      <annotation>
         <documentation>
            Declares a template. A template is simply a combination of fixed facets and an optional preset. Templates are used as a guide when creation projects.
         </documentation>
      </annotation>
      <complexType>
         <sequence>
            <element ref="label"/>
            <element ref="fixed" minOccurs="0" maxOccurs="unbounded"/>
            <element ref="preset"/>
         </sequence>
         <attribute name="id" type="string" use="required">
            <annotation>
               <documentation>
                  The template id.
               </documentation>
            </annotation>
         </attribute>
      </complexType>
   </element>

<element name="preset">
      <annotation>
         <appInfo>
            <meta.element deprecated="true"/>
         </appInfo>
         <documentation>
            Declares a preset. A preset represents a common configuration of facets and their versions that a user might want to utilize on several projects. Presets can be supplied via this extension point or created by the user.
         </documentation>
      </annotation>
      <complexType>
         <sequence>
            <element ref="label"/>
            <element ref="description" minOccurs="0" maxOccurs="1"/>
         </sequence>
         <attribute name="id" type="string" use="required">
            <annotation>
               <documentation>
                  The preset id.
               </documentation>
            </annotation>
         </attribute>
      </complexType>
   </element>

Reproducible: Always
Comment 1 Konstantin Komissarchik CLA 2011-01-05 14:45:49 EST
There doesn't appear to be a way to fix this. This hits the limitation of PDE's exsd format not being a full xsd. The preset element that a template expects isn't the top-level preset element that has been deprecated, but there isn't a way to differentiate them in an exsd.

Resolving this as WONTFIX as the whole template mechanism has been fading from use for several years now and will eventually be deprecated.