Skip to main content



      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 06:16 Go to next message
Eclipse UserFriend
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 12:42 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 10:19:04 EDT 2025

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

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

Back to the top