|What is the best tool to M2T? [message #1279883]
||Sat, 29 March 2014 07:58
| Jose Texier
Registered: March 2014
I have my generated model of a M2M transformation in ATL. This target model conforms my Metamodel.ecore. |
So, I want to transform my model (conforms to MyMetamodel.ecore) to text.
What tool you know? Which is your recommend if you know an example where, exists a M2T transformation with a MyMetamodel.ecore.
I found the example Acceleo-Obeo (https://wiki.eclipse.org/Acceleo/Getting_Started), but do not explain how to incorporate MyMetamodel.ecore.
Finally, Is Acceleo the best tool to M2T if I use Eclipse?
|Re: What is the best tool to M2T? [message #1280575 is a reply to message #1279883]
||Sun, 30 March 2014 11:20
| Ed Willink
Registered: July 2009
On 29/03/2014 11:58, Jose Texier wrote:
> I found the example Acceleo-Obeo
> (https://wiki.eclipse.org/Acceleo/Getting_Started), but do not explain
> how to incorporate MyMetamodel.ecore.
Read the example/tutorial again. Of course it explains how to use an
> Finally, Is Acceleo the best tool to M2T if I use Eclipse?
JET has been available for longest and so is probably the most stable.
But since it rather predates modeling I feel that it lacks model relevance.
Acceleo is good if you like a tool that is very close to an OMG
Xpand was good if you like a very Java-like feel to your transformation.
The Xpand functionality has been subsumed into Xtend where the many Java
extensions make it easy to overlook the triple quote string literal and
guillemets that support M2T.
You can see from the OCL GIT history that I was originally an Acceleo
user and have migrated many of my templates to Xtend, and wherever
possible I try to layer my Xtend templates as a thin M2T *.xtend
inheriting from a thick *.java. My more complex OCL to Java code
generation 'templates' are now coded directly in Java since the
complexity of the analyses and optimisations are too great to be done
sensibly in an M2T tool.
Powered by FUDForum
. Page generated in 0.01529 seconds