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

Bug 330260

Summary: [content model] Model Group Definition's choice's optional element is created
Product: [WebTools] WTP Source Editing Reporter: Keith Chong <keith.chong.ca>
Component: wst.xsdAssignee: Keith Chong <keith.chong.ca>
Status: RESOLVED FIXED QA Contact: Keith Chong <keith.chong.ca>
Severity: normal    
Priority: P3    
Version: 3.2.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Apply to org.eclipse.wst.xml.core none

Description Keith Chong CLA 2010-11-15 11:07:31 EST
In the XML editor, there is a situation where if you add a new child element, elemA, the optional grandchild element, elemB, is added as well.  This optional element should NOT be added.

This happens if elemA has a type that consists of a model group definition reference whose child model group is both a choice and is optional.
Comment 1 Keith Chong CLA 2010-11-15 11:11:13 EST
Created attachment 183130 [details]
Apply to org.eclipse.wst.xml.core
Comment 2 Keith Chong CLA 2010-11-15 11:32:29 EST
Released fix for WTP 3.2.3 and 3.3