Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » IFileStore -> IFile
IFileStore -> IFile [message #326275] Thu, 13 March 2008 13:09 Go to next message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi all,



I have a view (not the ResourceNavigator) that I use to display a File
System representation (I use EFS to map via IFileStore information from a
db).



Does anyone can point me where the resource navigator view (or how to do it)
transform the IFileStore to a IFile?



I need this just to be able to open any kind of editor with



IDE.openEditor(page, file, true);



Any help will be appreciated.



Just to be a bit more clearer: if I link my EFS to the Resource view I can
open any file it contains without any trouble if I just open I file on the
FileStore it works only with the basic TextEditor



Regards

Kar
Re: IFileStore -> IFile [message #326285 is a reply to message #326275] Thu, 13 March 2008 17:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipseng.arthorne.com

KarSc wrote:
> Does anyone can point me where the resource navigator view (or how to do it)
> transform the IFileStore to a IFile?

See IWorkspaceRoot#findFilesForLocationURI. Pass in the URI of the
IFileStore.

--
Re: IFileStore -> IFile [message #326314 is a reply to message #326285] Fri, 14 March 2008 13:15 Go to previous message
Carmelo  is currently offline Carmelo Friend
Messages: 224
Registered: July 2009
Senior Member
Hi John ... hope i'm not saying something wrong ... but the problem is that
workspace root find file will only work if you are using EOF to link your
filesystem in the resourceview ... this will return null if u ur using your
eof to navigate your "filesystem" in a different view ...

i have tried to map my eof (which maps a db - sometimes really big) in the
resource view but it will read all the content .... and this could take
minutes

so it's ok if i use it in a normal view (works fine) but i will not be able
to use any editor on different file except the txt one (xml will not be open
and so on ;-(


"John Arthorne" <eclipseng@arthorne.com> wrote in message
news:frbndf$a3f$1@build.eclipse.org...
> KarSc wrote:
>> Does anyone can point me where the resource navigator view (or how to do
>> it) transform the IFileStore to a IFile?
>
> See IWorkspaceRoot#findFilesForLocationURI. Pass in the URI of the
> IFileStore.
>
> --
>
Previous Topic:Feature as "Jar"
Next Topic:How to detect when Eclipse is not the foreground application?
Goto Forum:
  


Current Time: Sat Nov 09 03:29:29 GMT 2024

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

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

Back to the top