|Detect extern model changes [message #929449]
||Mon, 01 October 2012 13:16
Registered: September 2012
imagine the following usecase:
1. editing the model with the xtext editor. Save as text. Save the ast (how?).
2. accessing the ast of the model with a different editor (no xtext editor).
3. make changes to the model (to the ast) with the second editor.
4. recognize there are changes to the ast. Update the xtext textual representation.
And here are some open questions:
a) Is there any direct way to save the abstract syntax tree of the model (as objects, no textual only representation)? Or do I have to do this by myself at compile time or while saving changes?
b) If the ast can be saved somehow: Is there any possibility for xtext to reconstruct its textual representation from a loaded ast?
c) As I don't think it's possible to directly save the ast: is there any other xtext way to solve the described usecase?
Powered by FUDForum
. Page generated in 0.02246 seconds