M2M for M2T instead of Acceleo? [message #1849154] |
Wed, 05 January 2022 16:50 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
Hi,
I am having trouble using Acceleo ( user guide is not up to date, no (relevant) tutorials are available and the examples are not present after installing Acceleo) and I do need a M2T-solution.
I found a paper by Ed Willink titled "A text - Use your favourite M2M for M2T" in which he describes an example (4.1 ) that uses M2M for M2T. Is there a description/tutorial/download somewhere that I can use to re-create that example so that I can create my own solution based on the example?
TIA
Joost
Cheers,
Joost
|
|
|
Re: M2M for M2T instead of Acceleo? [message #1849162 is a reply to message #1849154] |
Wed, 05 January 2022 19:49 |
Ed Willink Messages: 7680 Registered: July 2009 |
Senior Member |
|
|
Hi
It is possible that the Acceleo documentation has fallen out of the latest releases, or that you installed a lightweight non-SDK variant. Anyway Googling "Acceleo tutorial" provides hits.
My paper demonstrates that an M2M can be used for M2T, and so undermines the original responses to the MOFM2T RFP that led to Acceleo. In principle it could take a couple of months to round off the rough edges of M2M as M2T compared to the multiple man years to develop a full independent M2T solution. You could use the techniques referenced in the paper, but they will be a bit painful. Rounding off those rough edges is on my todo list, but it's a pretty long list and depends on other things to be done first.
In contrast, your M2T choices are not great. Acceleo is stable and not always easy to use. I find Xtend's String Templates much more satisfactory, but the longevity of Xtend has been brought into question recently. Some users like JET that has now got an Xtext editor to make it pleasanter.
For my own work, I use JET when EMF pretty much mandates it, otherwise I started with Acceleo, but found it could not cope with transforming OCL-based metamodels while also using OCL internally and so I migrated everything to an Xtend / Java hybrid. I use a thin Xtend string template layer on top of Java for simple M2T, and plain Java for complex M2T.
Regards
Ed Willink
|
|
|
Re: M2M for M2T instead of Acceleo? [message #1849168 is a reply to message #1849162] |
Wed, 05 January 2022 22:52 |
Joost Kraaijeveld Messages: 273 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have installed all I could install and I think that I have seen almost all the pages that even remotely looked like "Accelleo tutorial" but alas...
I will look (again) into your Xtend remark but I was reluctant because of the longlevity of XTend you also mentioned (I have the book and have created some simple XText/XTend things).
Could you elaborate your remark about "plain Java for complex M2T"? Is it possible to iterate in plain Java through a Papyrus UML model, generating text? Do you have (a pointer to) an example for that?
TIA
Joost
Cheers,
Joost
[Updated on: Wed, 05 January 2022 22:56] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03370 seconds