Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » What is the best tool to M2T? (Transformation M2T)
What is the best tool to M2T? [message #1279883] Sat, 29 March 2014 11:58 Go to next message
Jose Texier is currently offline Jose Texier
Messages: 7
Registered: March 2014
Junior Member
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?

Thanks,
Jose
Re: What is the best tool to M2T? [message #1280575 is a reply to message #1279883] Sun, 30 March 2014 15:20 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4046
Registered: July 2009
Senior Member
Hi

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
Ecore file.
>
> 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
specification (MOFM2T).

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.

Regards

Ed Willink
Previous Topic:How register my MyMetamodel.ecore in Acceleo?
Next Topic:[Acceleo] No output despite correct input
Goto Forum:
  


Current Time: Thu Sep 18 03:48:28 GMT 2014

Powered by FUDForum. Page generated in 0.13559 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software