Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330260 - [content model] Model Group Definition's choice's optional element is created
Summary: [content model] Model Group Definition's choice's optional element is created
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsd (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Keith Chong CLA
QA Contact: Keith Chong CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-15 11:07 EST by Keith Chong CLA
Modified: 2010-11-15 11:32 EST (History)
0 users

See Also:


Attachments
Apply to org.eclipse.wst.xml.core (1.92 KB, patch)
2010-11-15 11:11 EST, Keith Chong CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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