|
Re: Guidance on M2M transformation [message #909752 is a reply to message #907303] |
Fri, 07 September 2012 17:51 |
Cristiano De Faveri Messages: 13 Registered: August 2012 |
Junior Member |
|
|
Hi again, I'll try to narrow down my question :
What I'm trying to do is an on-the-fly model transformation. As long my text language (L1) changes, I'll change the model to create another output language (L2) and finally perform a M2T transformation.
Which approach should I follow to accomplish these tasks ?
a) Create a Component that gets the original model (L1), clone it, transform it (to L2) and send to Generator ?
b) Work directly on Generator, getting a cloned resource, working on it to transform the model and finally emit textual L2 ?
I'm trying the second one, but changing the resource objects has not been easy (not sure if possible).
Please, if someone could help in this doubt, I'd appreciate.
===================================
Cristiano De Faveri wrote on Mon, 03 September 2012 14:02Hi All,
I need some guidance to perform M2M transformation using Xtext. Given my meta-model (Ecore), I'd like to perform some M2M transformation, creating additional classes, adding new nodes and remove some of them to finally perform the M2T process in order to generate my code.
I'm working on mwe2 workflow to insert a step to perform this transformation using Xtend (One or more files).
Am I in the right direction ? It's not clear for me what kind of attribute I should create in the workflow. Is that a component or fragment ? If someone could send some more detailed documentation about it (since xText documentation is not clear for me about this issue) or give me some guidance, I'd be grateful.
Thank you in advance
Cristiano
|
|
|
Powered by
FUDForum. Page generated in 0.02516 seconds