Community
Participate
Working Groups
When a complex type element in an XML schema has simple content with enumerations, these do not appear in the content model. This prevents the XML Editor content assist from showing the correct options. Also, no combo box appears in the XML Editor design view.
Created attachment 86505 [details] Patch This patch fixes the issue by obtaining the simple type content from complex types when enumerations are being retrieved.
Moving to xsd as the code affected is in xsd.core.
Thanks Valentin.
Hi Keith, Gabriel, as I mentioned, it would be safe to add a unit test for this as well. Keith, if we don't have a JUnit plug-in for xsd.core already, please open a bug and create the plug-in and let's get the ball rolling with creating unit tests. The content model adapter for XSD is a fairly sensitive piece of code used for content assist and more and we need to start giving it some code coverage through unit tests.
Targetting this fix for 3.0 M5
See bug 214819
Reassigning back to you Gabriel since you've provided the patch. I've released the change to WTP3.0 M5.
Fixed.
Closing
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword.