|Re: Modifying a file that's not open in an editor? [message #865444 is a reply to message #865169]
||Mon, 30 April 2012 11:55
| Sebastian Zarnekow
Registered: July 2009
please file a ticket. IModificationContext#getXtextDocument could work
with the plain IXtextDocument and use the IDocumentProvider to save the
You may want to customize the
to achieve that for your language.
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com
Am 30.04.12 11:13, schrieb Stephan Herrmann:
> Thanks for suggestions.
> Christian Dietrich wrote on Fri, 27 April 2012 21:48
>> what about letting Xtext opening the editor for you by calling
> This seems to be the one closest to what I want to do, great.
> One caveat: it seems the URI must be a platform URI, classpath: doesn't
> work (might be worth documenting in API doc :)
> Actually opening editors for secondary files is tolerable in my case
> since normally only one additional file is affected. However, if a quick
> fix should affect more files opening all these might become an issue.
> Especially when I start implementing refactorings I don't want to open
> all affected files in editors.
> Is there any other API for rewriting that does not depend on an editor?
> Anything similar to JDT's ASTRewrite? (I wouldn't want to go back to
> serializing entire files because the layout of the source code must be
> preserved as much as possible.)
Powered by FUDForum
. Page generated in 0.03006 seconds