IFile in RCP application [message #453476] |
Mon, 31 July 2006 14:48 |
Eclipse User |
|
|
|
Originally posted by: nagel.trium.de
Hi all,
In my standalone RCP application I want to use an editor (XML Author,
extends TextEditor) and feed it with Strings. As it seems impossible to
pass anything else than IFile instances, I thought of creating a temporary
file, adding a IFile handle and passing the IFile to the editor.
It seems that IFiles can only exist in a Workspace. So my question is: How
can I add a workspace to my RCP application? (... in order to put
temporary IFiles into it that can be read in and changed by the editor.)
Thanks in advance,
Lars
|
|
|
|
|
Re: IFile in RCP application [message #453486 is a reply to message #453476] |
Mon, 31 July 2006 19:29 |
Eclipse User |
|
|
|
Originally posted by: nohtml.gmx.de
Lars Nagel schrieb:
> As it seems impossible to
> pass anything else than IFile instances,
I dont know if TextEditor is different from other editors, but
you can always pass an object of IEditorInput to an editor.
See IWorkbenchPage.openEditor(IEditorInput, String)
A temporary file seems complicated ...
regards
Karl
|
|
|
|
Powered by
FUDForum. Page generated in 0.10873 seconds