Archive for the ‘EMF’ Category

XSD Export from EMF

Thursday, February 14th, 2008

When using an EMF implementation, I quite like persisting a model using XML rather than XMI. I also like to know what format the XML will be. If I generated the initial ecore from a schema then it’s clear that I’ll know, but what if I’ve changed the model since the initial generation, or what if I didn’t use an XSD as the source. Wouldn’t it be nice to be able to export the current XSD?

Of course, I was being blind; EMF already has this. Right click the genmodel, and select “Export Model…”, you’ll be presented with this dialog :
EMF XSD Export Dialog

Nice :-)

EMF Containment behaviour

Wednesday, April 18th, 2007

Whilst doing something with EMF (Eclipse Modelling Framework) recently I noticed some interesting behaviour when dealing with containment. I’ll describe it using two scenarios, each with an alternative.
(more…)