Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Opening a file that not exist in the workspace!
Opening a file that not exist in the workspace! [message #209854] Wed, 09 May 2007 07:27 Go to next message
Eclipse UserFriend
Originally posted by: martin.lindblad.gmail.com

Hi!

I'm working on an editor and in that editor I want to open an editor
specific file that don't exist in the workspace. Is that possible? When
I'm trying to do that now I get a Classcastexception. The editor expect
a IFileEditorInput but the file outside the workspace is of the type
JavaFileEditorInput.

Many thanks

Martin
Re: Opening a file that not exist in the workspace! [message #209905 is a reply to message #209854] Wed, 09 May 2007 14:42 Go to previous message
Darin Swanson is currently offline Darin SwansonFriend
Messages: 2386
Registered: July 2009
Senior Member
Which version of Eclipse are you using?

On the latest (3.3) take a look at FileStoreEditorInput.

See the org.eclipse.ant.internal.ui.ExternalHyperlink implementation for an
example

HTH
Darins

"Martin" <martin.lindblad@gmail.com> wrote in message
news:f1rt57$301$1@build.eclipse.org...
> Hi!
>
> I'm working on an editor and in that editor I want to open an editor
> specific file that don't exist in the workspace. Is that possible? When
> I'm trying to do that now I get a Classcastexception. The editor expect a
> IFileEditorInput but the file outside the workspace is of the type
> JavaFileEditorInput.
>
> Many thanks
>
> Martin
Previous Topic:PATH Help Desperately Needed!
Next Topic:eclipse skins?
Goto Forum:
  


Current Time: Fri Apr 26 21:02:24 GMT 2024

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

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

Back to the top