Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to create a new file inside an editor
How to create a new file inside an editor [message #177748] Thu, 14 April 2005 22:50 Go to next message
Eclipse UserFriend
Originally posted by: eri_cao_apex.yahoo.com

Hi,

The situation will be like this: the editor applciation can have multiple
text input files and it will create new text files on the fly that will be
opened by a textEditor. I use the java.io.File to create a new file, but how
can I get the IEditorInput or IFile from this file object so that the
application can edit on it? Very confused with the eclipse plugin's IO API.
Any suggestions are welcome.

Thanks,

Eric
Re: How to create a new file inside an editor [message #178379 is a reply to message #177748] Wed, 20 April 2005 02:28 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Look at org.eclipse.core.resources.IFile. As you can determine from its
path, this is not related to GEF. For further queries, try the platform
newsgroup.

"Eric Cao" <eri_cao_apex@yahoo.com> wrote in message
news:d3msfd$9p$1@news.eclipse.org...
> Hi,
>
> The situation will be like this: the editor applciation can have multiple
> text input files and it will create new text files on the fly that will be
> opened by a textEditor. I use the java.io.File to create a new file, but
how
> can I get the IEditorInput or IFile from this file object so that the
> application can edit on it? Very confused with the eclipse plugin's IO
API.
> Any suggestions are welcome.
>
> Thanks,
>
> Eric
>
>
Previous Topic:How could i customize a java editor with a pallete
Next Topic:insert more than one element at once
Goto Forum:
  


Current Time: Fri Apr 26 18:43:33 GMT 2024

Powered by FUDForum. Page generated in 0.03091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top