Community
Participate
Working Groups
When developing a DSL with Xtext, it is initially convenient to use an auto-generated Ecore, but there often comes a point when it is appropriate to freeze the Ecore and import it thereafter. This is not easy. I always need to make significant use of direct XMI text editing. It would be helpful to have a refactoring that rewrites the generate statement as an import and moves the *.ecore and *.genmodel from src-gen to model and fixed up the internal references so that thereafter GenModel works, possibly automatically as part of the MWE2 script.
I understand you'll have to change all fragment URIs from the src-gen path to the new path. Is there anything else you have to adjust manually?
build.properties needs a models folder. plugin.xml needs a different genmodel path. These are pretty easy. It's the ecore/genmodel/xtext URIs that are non-trivial.
We should generate an Xcore file instead of an Ecore.
(In reply to comment #3) > We should generate an Xcore file instead of an Ecore. That's a different but also useful option. So long as manually maintained Ecore import is supported, the suggested refactoring would be useful.