substitution groups & GMF [message #161597] |
Mon, 19 November 2007 21:30 |
Eclipse User |
|
|
|
Hi, I'm attempting to use GMF to build an editor over a model generated
from XSD which uses substitution groups liberally.
Over on the EMF newsgroup, Ed straightened me out on how I'd need to use
api like
x.getAbstractModelGroup().add(XyzPackage.Literals.DOCUMENT_R OOT__MODEL,
model)
instead of
x.setAbstractModel(model)
in order to get the right serialization. And also offered the colorful
metaphor "while substitution groups are syntactic sugar in XML Schema,
they are semantic rat poison in your abstract model"
So what I'm wondering is whether I'm dead in the water with GMF.
Has anyone had luck either with some sort of workaround (e.g. use the
abstract substitution group head as the Containment Feature to generate
diagram classes and then going in and fixing things up to use the Group in
creation commands etc.), or looking into what it would take to extend the
current GMF tooling to handle substitution groups and produce the right
code?
Any advice would be very welcome. Thanks ~Ted
|
|
|
Powered by
FUDForum. Page generated in 0.04965 seconds