Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355898

Summary: Element 'enablement' is not legal as a child of element 'moduleFactory'
Product: [WebTools] WTP ServerTools Reporter: Adrian Padilla <adrianpade14>
Component: wst.serverAssignee: Elson Yuen <eyuen7>
Status: RESOLVED FIXED QA Contact: Elson Yuen <eyuen7>
Severity: minor    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2.5   
Hardware: PC   
OS: Windows XP   
See Also: https://git.eclipse.org/r/109072
Whiteboard:
Attachments:
Description Flags
v1.0 none

Description Adrian Padilla CLA 2011-08-25 18:04:47 EDT
It appears that the schema for the org.eclipse.wst.server.core.moduleFactories extension point needs to be updated to add the enablement element as an allowed child of the moduleFactory element.

Here is a proposal:
This is a modification to the moduleFactory element defined in the ModuleFactories.exsd in the org.eclipse.wst.server.core plugin

   <element name="moduleFactory">
      <annotation>
         <appInfo>
            <meta.element labelAttribute="id"/>
         </appInfo>
      </annotation>
      <complexType>
         <sequence>
            <element ref="moduleType" minOccurs="0" maxOccurs="unbounded"/>
            <element ref="enablement" minOccurs="0" maxOccurs="1"/><!--New line-->
         </sequence>
Comment 1 Elson Yuen CLA 2011-10-05 16:45:25 EDT
Created attachment 204636 [details]
v1.0
Comment 2 Elson Yuen CLA 2011-10-05 16:45:57 EDT
Adrian, thanks for the suggestion. Patch created based on your suggestion.
Comment 3 Elson Yuen CLA 2011-10-05 16:52:51 EDT
Changes released to 32M, 33M and HEAD.
Comment 4 Eclipse Genie CLA 2017-10-11 16:37:16 EDT
New Gerrit change created: https://git.eclipse.org/r/109072