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?

Thanks
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: 14665
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 https://github.com/danieldietrich/xtext-protected-regions to the current version of xtext


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Cross Reference without additional feature
Next Topic:[SOLVED] Enable Java generation with a partial compilation
Goto Forum:
  


Current Time: Fri Apr 19 20:39:51 GMT 2024

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

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

Back to the top