Using Acceleo investigating a model [message #783758] |
Thu, 26 January 2012 06:57  |
Eclipse User |
|
|
|
My name is Paolo and I am a new Acceleo user.
I am stuck on a particolar stage of my project and I wish to know if you could, please, give some information or a tutorial where to find this info.
Using XTEXT Eclipse Tool, I wrote the grammar to implement a Dsl language, and as result I had the corresponding ".ecore" meta-model.
I imported this ".ecore" meta-model in an Acceleo project , and wrote the template to investigate this meta-model, just to reach my final target (implement a C# language transformation of my initial Dsl language).
Doing this process I had no problems.
At this point my problems are the following :
1) in Acceleo, how is it possible to implement a "model" of this meta-model ?
2) in Acceleo, how is possible to write a template that investigates (I mean, that collect information) from a model implemented in point 1 and use it for my final target?
I wish to thank you in advance for your help.
Best regards.
Paolo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Using Acceleo investigating a model [message #789033 is a reply to message #787262] |
Thu, 02 February 2012 09:23  |
Eclipse User |
|
|
|
Hi Laurent.
I spent some days with the "Android tutorial" but I am still stuck.
I hope you can give some suggestions.
This is what I did for my tests.
I have the .ecore file in a folder and I created the "Dynamic Instance" called MODEL.XMI (so this is the .ecore implementation).
I developed an Acceleo Project, where I wrote a Generate.mtl file to investigate the .ecore file and this worked fine ( of course I launched the generation using as model the .ecore file).
Subsequently I launched the generation using as model the file MODEL.XMI , and this was not working.
I know that there is something wrong doing this procedure, but is not very clear to me how else I should procede.
Can you please give me any suggestion?
Best regards.
Paolo.
|
|
|
Powered by
FUDForum. Page generated in 0.03400 seconds