[Acceleo] How to register other metamodels? [message #508175] |
Sun, 17 January 2010 01:52  |
Anderson Ledo Messages: 13 Registered: July 2009 |
Junior Member |
|
|
Hi,
I've searched a lot, but I haven't found a way of registering other metamodels different from the ones available in Acceleo MTL. I want to write some generators for metamodels from the AtlanMod [1], however the great majority isn't present in the metamodels registered in the tool.
I think it is a common problem, but I really have not found a solution and I would appreciate any tip.
Thanks in advance!
Cheers.
----
[1] - http://www.emn.fr/z-info/atlanmod/index.php/Ecore
Anderson Ledo
Campina Grande, Brazil
|
|
|
|
|
| Re: [Acceleo] How to register other metamodels? [message #509630 is a reply to message #509066] |
Sat, 23 January 2010 14:41   |
Anderson Ledo Messages: 13 Registered: July 2009 |
Junior Member |
|
|
Hi Laurent,
Thanks for the reply.
Unfortunatelly it didn't work yet.
I may be missing some simple detail.
What I've done...
I created an Acceleo project using the "Acceleo Module Wizard" and reproduced the example you presented. But, it simply gives me the same compilation error mensage "The metamodel couldn't be resolved". I tried a lot of different ways of defining the path, but without success (for instance, I also tried relative and absolute paths that are valid if used inside Java classes in the same project for accessing static files, but they also didn't worked inside the module definition).
What I've asked myself...
Do you know if it depends on any Eclipse configuration detail?
Are you using the same version I am? (mine is 0.8.1) Does it matter somehow?
Have you had the chance to try something similar to the given example? So that a piece of code would be greatly useful...
Well, I hope the explanation and questions above to be clear and helpful.
Again, thanks in advance.
Anderson Ledo
Campina Grande, Brazil
|
|
|
| Re: [Acceleo] How to register other metamodels? [message #509634 is a reply to message #509630] |
Sat, 23 January 2010 16:38   |
Andre Messages: 29 Registered: November 2009 Location: Brazil |
Junior Member |
|
|
HI anderson.
i'm not an expert on Acceleo, but have you tried the steps below?
1) generate the genmodel of the Ecore file
2) generate all files from genmodel
3) run a new Eclipse application
4) on the new workspace, create the Acceleo Project (you already did this)
5) create a New Acceleo Module File; on Metamodel URI, click on 'Browse...', then 'Runtime Version'.. your metamodel should appear now..
i hope it will work..
Andre Silva
Natal-RN
Brazil
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05550 seconds