| [news.eclipse.modeling.tmf] Re: [XText] serialize parsed tree to String |
Hi Sebastian,
ok, I've got it running, but not in a way I want.
If I merge the methods, I got a different serialization as I hoped for. I put into the parser a line like this:
$varname = 5;
But in my case: How can I reach my simple DSL code line "$varname = 5;" from serialization?
Ciao, Micha
--- Original-Nachricht --- Absender: Sebastian Zarnekow Datum: 11.09.2009 18:17
Hi Michael,
your resource is emtpy and has not been loaded.
Please try something like:
Resource res = resourceSet.getResource(URI.createURI(..existing uri..)); res.save(..);
resourceSet.createResource will create a new resource but won't load it.
res = resourceSet.createResource(..uri..); res.load(new StringInputStream("valid model")); res.save(..)
should do the trick as well.
Hope that helps, Sebastian