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
Eclipse UserFriend
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
Eclipse UserFriend
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

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
Eclipse UserFriend
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
Eclipse UserFriend
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.
Previous Topic:Dependency injection of ResourceDescriptionsProvider failed
Next Topic:Code completion is leading to validation execution in language server
Goto Forum:
  


Current Time: Sat Feb 08 04:37:13 GMT 2025

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

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

Back to the top