IFile in RCP application [message #453476] |
Mon, 31 July 2006 10: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 #453561 is a reply to message #453476] |
Wed, 02 August 2006 11:24  |
Eclipse User |
|
|
|
Lars Nagel wrote:
> 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,
This is not true - the text editor can also operate on external files
(see File > Open File...). The bigger problem for your RCP app will be
that you drag in all the IDE stuff (menus, views, etc) when adding
org.eclipse.ui.editors.
Dani
> 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
>
|
|
|
Powered by
FUDForum. Page generated in 0.26074 seconds