|Re: Generating Java/Caml code from XMI model? [message #820512 is a reply to message #817785]
||Wed, 14 March 2012 08:15
| Laurent Goubet
Registered: July 2009
As long as your file can be loaded as an EMF model, its extension does not matter, be it ecore, uml, xmi ... XMI is only (one of) the way(s) the model can be serialized on disk.
I suppose you were defining this model from within Eclipse? If not, can you use the right-click > open with > Other > Sample Reflective Ecore Model Editor; it you can see your model in this editor, it can be used "as an EMF model" . If so, you can simply feed it to Acceleo as is. Just replace the "uml" or "ecore" models of the tutorials by your own. If not, you will need to override the "registerPackages" method of the Java class Acceleo automatically generates beside your mtl file and add your "M1" (geneauto.ecore) in the package registrations before feeding your model to Acceleo.
Powered by FUDForum
. Page generated in 0.02040 seconds