Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » JavaFileEditorInput is used as default for File Open gesture.
JavaFileEditorInput is used as default for File Open gesture. [message #437885] Thu, 06 October 2005 17:27 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
is there a way in which to make the default File Open an EditorInput that is
is IFile based instead of java.io.File based?

or is there way to create an IFile from a java.io.File?
Re: JavaFileEditorInput is used as default for File Open gesture. [message #437893 is a reply to message #437885] Thu, 06 October 2005 19:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Drew wrote:
> is there a way in which to make the default File Open an EditorInput that is
> is IFile based instead of java.io.File based?
>
> or is there way to create an IFile from a java.io.File?
>
>

search bugzilla for javaFileEditorInput and you should see some
bugs/enhancements addressing somewhat the issue you are considering.


CL
Re: JavaFileEditorInput is used as default for File Open gesture. [message #437925 is a reply to message #437893] Fri, 07 October 2005 10:55 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.eclipse.org

CL [dnoyeb] Gilbert wrote:CL [dnoyeb] Gilbert wrote:

> Drew wrote:
>
>> is there a way in which to make the default File Open an EditorInput
>> that is
>> is IFile based instead of java.io.File based?
>
The 'Open File' command first checks whether the file is inside your
workspace and if so, an 'IFileEditorInput' pointing to that 'IFile' is
used. However, if the file is not in the workspace then there's nothing
we can do and there's no way to get an 'IFile' for that file and hence
we use the 'JavaFileEditorInput' pointing to that external file.

>>
>> or is there way to create an IFile from a java.io.File?
>>
>>
>
> search bugzilla for javaFileEditorInput and you should see some
> bugs/enhancements addressing somewhat the issue you are considering.

Not sure what this has to do with the initial question since - as said
above - we can't use IFileEditorInput if there's no IFile.

Dani

>
>
> CL

> Drew wrote:
>
>> is there a way in which to make the default File Open an EditorInput
>> that is
>> is IFile based instead of java.io.File based?
>>
>> or is there way to create an IFile from a java.io.File?
>>
>>
>
> search bugzilla for javaFileEditorInput and you should see some
> bugs/enhancements addressing somewhat the issue you are considering.
>
>
> CL
Previous Topic:RCP Key Bindings
Next Topic:Job Exception catching
Goto Forum:
  


Current Time: Sat Dec 14 17:47:05 GMT 2024

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

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

Back to the top