Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » substitution groups & GMF
substitution groups & GMF [message #161597] Mon, 19 November 2007 21:30
Eclipse UserFriend
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
Previous Topic:Help with composite Figure
Next Topic:Implementing a DEVS modeling plugin
Goto Forum:
  


Current Time: Tue Jul 15 16:40:49 EDT 2025

Powered by FUDForum. Page generated in 0.04965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top