Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » Does the Acceleo model-to-text transformation support different kind of input models in .mtl file?(M2T )
Does the Acceleo model-to-text transformation support different kind of input models in .mtl file? [message #1804753] Sun, 31 March 2019 08:49 Go to next message
Eclipse UserFriend
Hi Acceleo Team and Forum Members,



In the model-to-text transformation, we are working on, there is a need to take the input from different kind of models (.xmi's and .uml) and generate the output files. The question is: does the Acceleo model-to-text transformation support different kind of input models in .mtl file?



Best Regards,

Samina
Re: Does the Acceleo model-to-text transformation support different kind of input models in .mtl fil [message #1804822 is a reply to message #1804753] Mon, 01 April 2019 15:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Yes. Anything that loads as a generic EMF Resource should work. i.e.. does Open With ... the Sample Ecore Model Editor work?

Regards

Ed Willink
Re: Does the Acceleo model-to-text transformation support different kind of input models in .mtl fil [message #1804879 is a reply to message #1804822] Tue, 02 April 2019 12:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi again,

Thank you so much for your reply,

There is no problem if we perform the transformation with one model at a time. The problem in our case is working with multiple models simultaneously. In our case, we have different top-level elements for the models. As an example, we can create two .uml models, with different Model Objects (Model and Package). In the first model, we name the Model Object "model A" and add some element(s) such as Class A. In the second model, the Package is given a name "package B" and we add some element(s) such as Class B. Is it possible that we execute both models at a time, for example, by giving a reference of the second model in the Acceleo launcher, so that the elements from both models can be transformed to the desired files using the .mtl file.

Best regards,
Samina
Re: Does the Acceleo model-to-text transformation support different kind of input models in .mtl fil [message #1804888 is a reply to message #1804879] Tue, 02 April 2019 15:21 Go to previous message
Eclipse UserFriend
Hii

I don't see the problem. Acceleo uses EMF Resources. You may have to customize the Acceleo auto-generated 'main' of course.

Regards

Ed Willink
Previous Topic:Installing Acceleo on Eclipse 2018-12
Next Topic:[Acceleo] proper signature of template
Goto Forum:
  


Current Time: Fri Apr 18 00:40:18 EDT 2025

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

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

Back to the top