Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » JavaFileEditorInput vs IEditorInput
JavaFileEditorInput vs IEditorInput [message #308712] Mon, 02 October 2006 11:30 Go to next message
Eclipse UserFriend
Originally posted by: diebosto.fi.vupv.es

Hi!
i want to change my JavaFileEditorInput references on my code (because it
has discouraged access). I have read that i should change it for
IEditorInput. Is that correct?
Do I have to make my own editor or there is already one already created?
Thanks!
Re: JavaFileEditorInput vs IEditorInput [message #308760 is a reply to message #308712] Mon, 02 October 2006 20:27 Go to previous messageGo to next message
Eclipse UserFriend
Diego Bosca wrote:
> Hi!
> i want to change my JavaFileEditorInput references on my code (because it
> has discouraged access). I have read that i should change it for
> IEditorInput. Is that correct?
> Do I have to make my own editor or there is already one already created?
> Thanks!

For IFiles, there's already a FileEditorInput that's public API (in
org.eclipse.ui.ide)

Later,
PW
Re: JavaFileEditorInput vs IEditorInput [message #308772 is a reply to message #308760] Tue, 03 October 2006 03:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: diebosto.fi.vupv.es

On 03 oct 2006, you wrote in eclipse.platform:

> Diego Bosca wrote:
>> Hi!
>> i want to change my JavaFileEditorInput references on my code
>> (because it has discouraged access). I have read that i should change
>> it for IEditorInput. Is that correct?
>> Do I have to make my own editor or there is already one already
>> created? Thanks!
>
> For IFiles, there's already a FileEditorInput that's public API (in
> org.eclipse.ui.ide)
>
> Later,
> PW
>
Thanks for your reply
I did this, but the FileEditorInput needs an IFile and with
" org.eclipse.core.filesystem.EFS.getLocalFileSystem().getStor e(path) "
I get a IFileStore...
is there any way to get an IFile from the filesystem?
thanks!
Re: JavaFileEditorInput vs IEditorInput [message #308826 is a reply to message #308772] Wed, 04 October 2006 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

Diego Bosca <diebosto@fi.vupv.es> wrote:
> On 03 oct 2006, you wrote in eclipse.platform:
>
>> Diego Bosca wrote:
>>> Hi!
>>> i want to change my JavaFileEditorInput references on my code
>>> (because it has discouraged access). I have read that i should
>>> change it for IEditorInput. Is that correct?
>>> Do I have to make my own editor or there is already one already
>>> created? Thanks!
>>
>> For IFiles, there's already a FileEditorInput that's public API (in
>> org.eclipse.ui.ide)
>>
>> Later,
>> PW
>>
> Thanks for your reply
> I did this, but the FileEditorInput needs an IFile and with
> " org.eclipse.core.filesystem.EFS.getLocalFileSystem().getStor e(path) "
> I get a IFileStore...
> is there any way to get an IFile from the filesystem?
> thanks!

You cannot get an IFile for a file which is not part of the workspace.
For such cases, either you bite the bullet and use JavaFileEditorInput or
create a local copy of it which you can call whatever you want.

--
Sunil
Re: JavaFileEditorInput vs IEditorInput [message #308840 is a reply to message #308826] Thu, 05 October 2006 03:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: diebosto.fi.vupv.es

"Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in
news:eg0qco$vrg$1@utils.eclipse.org:

> Diego Bosca <diebosto@fi.vupv.es> wrote:
>> On 03 oct 2006, you wrote in eclipse.platform:
>>
>>> Diego Bosca wrote:
>>>> Hi!
>>>> i want to change my JavaFileEditorInput references on my code
>>>> (because it has discouraged access). I have read that i should
>>>> change it for IEditorInput. Is that correct?
>>>> Do I have to make my own editor or there is already one already
>>>> created? Thanks!
>>>
>>> For IFiles, there's already a FileEditorInput that's public API (in
>>> org.eclipse.ui.ide)
>>>
>>> Later,
>>> PW
>>>
>> Thanks for your reply
>> I did this, but the FileEditorInput needs an IFile and with
>> " org.eclipse.core.filesystem.EFS.getLocalFileSystem().getStor e(path) "
>> I get a IFileStore...
>> is there any way to get an IFile from the filesystem?
>> thanks!
>
> You cannot get an IFile for a file which is not part of the workspace.
> For such cases, either you bite the bullet and use JavaFileEditorInput
> or create a local copy of it which you can call whatever you want.
>
JavaFileEditor input has discouraged access so it won't let me access it
.. But no problem, i have created a ficticious project and file so i can
link the external file to it and then all goes right
Thanks all!!
Re: JavaFileEditorInput vs IEditorInput [message #308927 is a reply to message #308772] Tue, 10 October 2006 04:32 Go to previous message
Eclipse UserFriend
Diego Bosca wrote:

>On 03 oct 2006, you wrote in eclipse.platform:
>
>
>
>>Diego Bosca wrote:
>>
>>
>>>Hi!
>>>i want to change my JavaFileEditorInput references on my code
>>>(because it has discouraged access). I have read that i should change
>>>it for IEditorInput. Is that correct?
>>>Do I have to make my own editor or there is already one already
>>>created? Thanks!
>>>
>>>
>>For IFiles, there's already a FileEditorInput that's public API (in
>>org.eclipse.ui.ide)
>>
>>Later,
>>PW
>>
>>
>>
>Thanks for your reply
>I did this, but the FileEditorInput needs an IFile and with
>" org.eclipse.core.filesystem.EFS.getLocalFileSystem().getStor e(path) "
>I get a IFileStore...
>
>
Please see https://bugs.eclipse.org/bugs/show_bug.cgi?id=111887

>is there any way to get an IFile from the filesystem?
>
>
No.

Dani

>thanks!
>
>
Previous Topic:TextEditor File Saving
Next Topic:Having trouble opening java editor on file
Goto Forum:
  


Current Time: Thu Jul 17 13:26:58 EDT 2025

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

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

Back to the top