Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Some EFS questions
Some EFS questions [message #331417] Fri, 05 September 2008 09:57 Go to next message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
Hi all,

I am (successfully) experimenting with the EFS ad I am able to make it
work. What I did was to implement a FileSystem and a FileStore that
retrieve some data and present it through the EFS. In the project
explorer I create a linked resource with my scheme in the URI and
everything works.

Now I have the following problem: some filesystems need some metadata
for being configured. For example, a filesystem that presents remote
resources needs a username and password for connecting to the remote
host. I can stuff this information in the URI but, of course, it is only
a question of time before other "properties" will emerge (e.g., connect
to the remote host through the proxy X using mode Y, etc.) Of course I
might encode all this information in the URI but this looks too messy.

So the question is: is there a way for making this metadata available to
the EFS filesystem when the IFileStore getStore(URI uri) is called?
Apparently from this method it is impossible to access to anything but
the URI.

One solution would be to use the (part of the) uri as a key in some
property store (provided either by OSGi or Eclipse) and put all the
metadata there. But I wondered if there was another way already defined
in the EFS API or some "good practices" with respect to this problem.


Thank you,
Fabio

P.S.: In the EFS Wiki page there is a link to an FTP example. However
the given location is basically empty. Do you know where I can find the
source code for it?
Re: Some EFS questions [message #331443 is a reply to message #331417] Sun, 07 September 2008 13:11 Go to previous message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
Fabio Mancinelli wrote:

> One solution would be to use the (part of the) uri as a key in some
> property store (provided either by OSGi or Eclipse) and put all the
> metadata there. But I wondered if there was another way already defined
> in the EFS API or some "good practices" with respect to this problem.
>
Actually I have implemented this solution by encoding in the URI a
symbolic name that is then used to reference a PreferenceStore with all
the configuration details.

Thanks.

-F
Previous Topic:Network Access Message while calling Help/Dynamic Help
Next Topic:toggle button persistent between Eclipse sessions
Goto Forum:
  


Current Time: Wed Jul 17 19:40:30 GMT 2024

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

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

Back to the top