Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Compare and merge/mark on Regeneration Xtext-Xtend(Compare and merge/mark on Regeneration Xtext-Xtend)
icon5.gif  Compare and merge/mark on Regeneration Xtext-Xtend [message #1762853] Fri, 12 May 2017 05:44 Go to next message
Rodrigue Sandio is currently offline Rodrigue SandioFriend
Messages: 8
Registered: May 2017
Junior Member
Hi All,
I recently made Xtext-Xtend app to generate C++ classes.

Some code needs to be typed externally, as for instance the implementation of functions.

However, whenever I regenerate the files all the manually written code is deleted.

Is there a way to Compare and Merge/Mark files when regenerating?

Re: Compare and merge/mark on Regeneration Xtext-Xtend [message #1762860 is a reply to message #1762853] Fri, 12 May 2017 05:47 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14699
Registered: July 2009
Senior Member
you ususally use the generation gap pattern for that. Abstract Generated Superclass, Subclass With Manual Code is Generated once. Xtext supports this by having different OutoutConfigurations.
if you really want protected regions you might need to port to the current version of xtext

Twitter : @chrdietrich
Blog :
Previous Topic:Cross Reference without additional feature
Next Topic:[SOLVED] Enable Java generation with a partial compilation
Goto Forum:

Current Time: Sun Jul 21 11:32:26 GMT 2024

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

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

Back to the top