I have I Xtext Document (eclipse editor) and i want to write to it a new value.
i can read the xtext node (ILeaf Node) but i don't know how to write to it.
Am 31.01.13 16:00, schrieb Dana Klein:
> I have I Xtext Document (eclipse editor) and i want to write to it a new
> value. i can read the xtext node (ILeaf Node) but i don't know how to
> write to it.
You can set the text of the document. The node model cannot be modified.
The text change in the document will trigger a reparse.
Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
i figured that as it doesn't have any setters but how can i edit the document? i want to do it in the code and not in the editor..
like the ProposalProvider that allow me to add code to the document
What's wrong with IDocument.set() and IDocument.replace() ?
Am 31.01.13 16:41, schrieb Dana Klein:
> i figured that as it doesn't have any setters but how can i edit the
> document? i want to do it in the code and not in the editor.. like the
> ProposalProvider that allow me to add code to the document