Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xcore and mwe2(Is it possible to use Xcore in our workflow?)
Xcore and mwe2 [message #1856365] Wed, 07 December 2022 15:45 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 179
Registered: July 2009
Senior Member
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 #1856367 is a reply to message #1856365] Wed, 07 December 2022 15:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
i have zero clue on xcore and mwe2 but maybe you can check

https://github.com/eclipse/xtext-maven/tree/master/org.eclipse.xtext.maven.plugin/src/test/resources/it/generate/xcore-lang

and (dont know how up to date this is and what it exactly does)
https://github.com/cdietrich/xcore-maven-example
https://github.com/cdietrich/xtext-ecore-xcore



Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xcore and mwe2 [message #1856373 is a reply to message #1856367] Wed, 07 December 2022 17:48 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
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 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
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.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Dependency injection of ResourceDescriptionsProvider failed
Next Topic:Code completion is leading to validation execution in language server
Goto Forum:
  


Current Time: Thu Mar 28 11:42:06 GMT 2024

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

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

Back to the top