|
Re: [ACCELEO] new metamodel [message #669399 is a reply to message #668790] |
Tue, 10 May 2011 08:17 |
|
Hi,
If you have a file with the "xmi" extension, I assume that you have created a dynamic instance of an element of a metamodel that you have created. If this is the case, then you need to define your Acceleo module on your own concepts not on UML.
You can see how it is done in this screenshot:
In this example, my Acceleo module is defined on myecore and myecore1 which are the URIs of my two metamodels. If you click on the root package of your metamodel in your ".ecore" file you can see its uri. Since you are using a dynamic metamodel, the URI will not appear in the wizard for the creation of a new module, you will have to edit the module after its creation.
The metamodel(s) used in the Acceleo module:
[module mymodule('myMetamodel1', 'myMetamodel2')]
it must be the same metamodel for your model (as I have explained it to leila already).
Since you and leila don't seem to understand this simple principle that I have already explained to you. Here is a nice screenshot explaining the same thing:
You see the difference with your situation ? You can't define a generator that will manipulate potatoes and carrots and give it a model about flying pigs and then expect a result!
Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com
|
|
|
Powered by
FUDForum. Page generated in 0.02852 seconds