Xcore and mwe2 [message #1856365] |
Wed, 07 December 2022 15:45  |
Eclipse User |
|
|
|
Hi
we use MWE2 workflows to generate from ecore to Java classes and run modification onto them.
Is it possible to use Xcore to edit the model.
Then on save instead of generating code, it shall just save/export to an ecore/genmodel file?
What setup is needed for this? Is there an existing description?
If this is possible, I could run the mwe2 workflow afterwards, as usual I do today with the ecore/genmodel file.
Frank
|
|
|
|
Re: Xcore and mwe2 [message #1856373 is a reply to message #1856367] |
Wed, 07 December 2022 17:48   |
Eclipse User |
|
|
|
Hi
I too have limited knowledge on xcore but understand it to be *.ecore plus *.genmodel with a friendly Xtext editor.
Since MWE2 supports custom beans, you can certainly develop a suitable one if no one has one already available. Adapting the standard (or else the OCL) Ecore GenModel bean is probably a good start.
Regards
Ed Willink
|
|
|
Re: Xcore and mwe2 [message #1856382 is a reply to message #1856373] |
Thu, 08 December 2022 06:46  |
Eclipse User |
|
|
|
You can directly use an Xcore model in an Xtext grammar. But I'm not sure what "modifications" you have to make; perhaps operations with bodies are sufficient for that purpose.
|
|
|
Powered by
FUDForum. Page generated in 0.03271 seconds