Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Ecore model generation - merge custom and generated java code
Ecore model generation - merge custom and generated java code [message #899040] Mon, 30 July 2012 10:16 Go to next message
Denis Delangle is currently offline Denis DelangleFriend
Messages: 1
Registered: July 2012
Junior Member

Usins xtext 2.3, I would like to modify the generated java code for my grammar. I know I can use a PostProcessor to modify the model but I would prefer to use the merge feature of EMF described here using @generated markers. I would customize the generated code and Xtext/EMF would merge grammar modifications in the java code.

If I remove the directory cleaner from my mwe2 file, the generated java classes are not modified when I change my xtext file and launch the workflow.

Do you know if this merge feature is supported by xtext and if so how can I achieve it ?


Re: Ecore model generation - merge custom and generated java code [message #899148 is a reply to message #899040] Mon, 30 July 2012 16:42 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 7868
Registered: July 2009
Senior Member

what kind of changes to you want to make?
what about switching to a manally maintained metamodel.
if you want not todo the changes inline there is
generation gap support with org.eclipse.emf.mwe2.ecore.EcoreGenerator

Previous Topic:Xtext Classpath-Based global scoping
Next Topic:Outline Tree Provider
Goto Forum:

Current Time: Fri Nov 27 04:54:35 GMT 2015

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

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