Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » read from file, which is going to be regenerated(keeping custom code in generated file)
read from file, which is going to be regenerated [message #791844] Mon, 06 February 2012 10:20 Go to next message
Michal S is currently offline Michal SFriend
Messages: 74
Registered: July 2011
Member
Hello,
I would like to ask, if and how it would be possible to read output file of Xtend based generator before is rewritten.
I want to allow users to edit generated file (just in few specific places) and keep their custom code there after re-generation.

NOTE:
- I know, that it would be possible to do it using reference to external (not-regenerated) file, but it makes the output code less readable.
- I know, that I will need to parse output file manually to get the custom code from there...

Thank you for your suggestions.
Regards,
Michal
Re: read from file, which is going to be regenerated [message #792272 is a reply to message #791844] Mon, 06 February 2012 20:32 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
Hi,

you may be looking for this one
http://www.eclipse.org/forums/index.php/m/690241/

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:headless Xtend2 code generation with Ant
Next Topic:Highlight ocurrences?
Goto Forum:
  


Current Time: Sun Sep 22 11:41:13 GMT 2024

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

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

Back to the top