Skip to main content



      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 01:44 Go to next message
Eclipse UserFriend
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 01:47 Go to previous message
Eclipse UserFriend
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
Previous Topic:Cross Reference without additional feature
Next Topic:[SOLVED] Enable Java generation with a partial compilation
Goto Forum:
  


Current Time: Mon May 12 18:17:19 EDT 2025

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

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

Back to the top