Bug 205067 - Need way to get list of FileSystemContributors
Summary: Need way to get list of FileSystemContributors
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-01 11:15 EDT by Greg Watson CLA
Modified: 2019-09-06 16:04 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson CLA 2007-10-01 11:15:30 EDT
Currently there is no way to find out which filesystems are supported. There appears to be some functionality in the platform to do this, but it is internal, so not available to non-platform plugins. The only way to do this is duplicate code that scans the plugins directly.

Also, the only way to get the IFileSystem is to use the scheme that is read from the plugin. This seems a bit clunky.

What is required is a static class (e.g. EFSUI) that provides a list of FileSystemContributors and a method that returns the IFileSystem associated with a FileSystemContributor. A corresponding method on the EFS class to return the currently available IFileSystems would also be useful for non-UI applications.
Comment 1 Doug Schaefer CLA 2007-10-02 11:32:59 EDT
How does the JDT do it? We want to select the file system in the New Project Wizard. I thought there already was a UI element for this somewhere. I've done this before in some earlier testing, but forgot how I got it done.
Comment 2 Greg Watson CLA 2007-10-02 12:23:12 EDT
JDT doesn't. You can specify the FS when creating a new generic project, but this is done in the platform so has access to internal packages.
Comment 3 Doug Schaefer CLA 2007-10-02 13:21:00 EDT
Actually if we subclass the WizardNewProjectCreationPage for our main page, wouldn't we get this functionality for free? I see that we used to in the old NewCProjectWizardPage.

This may actually be a CDT issue.
Comment 4 Doug Schaefer CLA 2007-10-02 13:33:26 EDT
Funny enough I hacked the CDTMainWizardPage to subclass WizardNewProjectCreationPage and I can visually see the selection of the file system. There may be other things that don't work since I end up in NPE hell (but that's mainly because I didn't hack enough). It is curious why we don't subclass like this. I'm sure there is a valid reason. 

Moving this to CDT since I think we have the opportunity to clean this up.
Comment 5 Greg Watson CLA 2007-10-02 13:37:33 EDT
What if I just want to get the list of file systems, say to display in my own dialog? Maybe I don't want to use the new project wizard at all. There is still no way to do this with the current EFS support, so I think this is still a platform problem.
Comment 6 Doug Schaefer CLA 2007-10-02 15:39:38 EDT
(In reply to comment #5)
> What if I just want to get the list of file systems, say to display in my own
> dialog? Maybe I don't want to use the new project wizard at all. There is still
> no way to do this with the current EFS support, so I think this is still a
> platform problem.

I suppose. I never thought of that scenario. I figured once you had the file system set for the project that you didn't nead to go through the selection again.

Feel free to unjack my hijacking of this bug ;)
Comment 7 Chris Recoskie CLA 2008-02-14 10:09:07 EST
Re-hijacking for its original purpose.  See comment #1.  Bouncing back to Platform Core.
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:04:53 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.