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 Delangle
Messages: 1
Registered: July 2012
Junior Member
Hello,

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 www.informit.com/articles/article.aspx?p=1323360&seqNum=4 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 ?

Thanks,

Denis
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 Dietrich
Messages: 6385
Registered: July 2009
Senior Member
hi,

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

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


Current Time: Thu Oct 23 19:34:07 GMT 2014

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

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