Community
Participate
Working Groups
Build Identifier: M20110909-1335 I would like to be able to use the browseFileSystem method in the FileSystemContributor to obtain a file, rather than a directory. The abstract class which defines this operation does not say anything about being able to obtain only a directory: /** * Browse the file system for a URI to display to the user. * @param initialPath The path to initialize the selection with. * @param shell The shell to parent any required dialogs from * @return URI if the file system is browsed successfully or * <code>null</code> if a URI could not be determined. */ As another point of reference, the RSE implementation of this method does allow selecting a file, instead of just a directory. The fix is a one-line change, and I will attach a patch for it. Reproducible: Always Steps to Reproduce: N/A
Created attachment 208020 [details] Patch that allows browsing for a file instead of a directory.
I agree the interface documentation is lacking, but the internal implementation of this interface for local files uses the SWT DirectoryDialog, so there is no way to browse for files on the local filesystem. Remote Tools is consistent with this behavior. Can you open a bug against the platform to see what they say?
(In reply to comment #2) > I agree the interface documentation is lacking, but the internal implementation > of this interface for local files uses the SWT DirectoryDialog, so there is no > way to browse for files on the local filesystem. Remote Tools is consistent > with this behavior. Can you open a bug against the platform to see what they > say? Well, it turns out that I no longer need this to be changed, since I went another route for our implementation. However, I will post up a bugzilla about the local fs behavior, but set it to low priority. I'll change the importance to "minor" on this bugzilla, and make it depend on the new one.
The org.eclipse.remote component of the Eclipse Ecosystem has a new home. It is now part of the Eclipse CDT project[1]. This change means a new Git repo[2], P2 site[3] and Bugzilla component. The org.eclipse.remote will continue to be delivered as part of the quarterly Simultaneous Release of Eclipse as well. If this bug is no longer relevant, please feel free to comment or close the bug. If you can confirm if this issues still occurs in the latest release please do let me know in a comment. [1] https://wiki.eclipse.org/CDT/User/NewIn106 [2] https://git.eclipse.org/c/cdt/org.eclipse.cdt.git (in the remote directory) [3] first CDT release will be 10.6 - P2 site will be https://download.eclipse.org/tools/cdt/releases/10.6/ (This comment was added to all relevant org.eclipse.remote bugs along with changing the Product/component pair to CDT/remote.)