|
Re: JavaFileEditorInput is used as default for File Open gesture. [message #437893 is a reply to message #437885] |
Thu, 06 October 2005 19:47 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03156 seconds