Class FileSystemContributor


  • public abstract class FileSystemContributor
    extends java.lang.Object
    The abstract base class for all UI file system contributors. This class provides the infrastructure for defining a contributor and fulfills the contract specified by the org.eclipse.ui.ide.filesystemSupport extension point.
    Since:
    3.2
    See Also:
    IFileSystem
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.net.URI browseFileSystem​(java.lang.String initialPath, Shell shell)
      Browse the file system for a URI to display to the user.
      java.net.URI getURI​(java.lang.String string)
      Return a URI for the supplied String from the user.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileSystemContributor

        public FileSystemContributor()
    • Method Detail

      • browseFileSystem

        public abstract java.net.URI browseFileSystem​(java.lang.String initialPath,
                                                      Shell shell)
        Browse the file system for a URI to display to the user.
        Parameters:
        initialPath - The path to initialize the selection with.
        shell - The shell to parent any required dialogs from
        Returns:
        URI if the file system is browsed successfully or null if a URI could not be determined.
      • getURI

        public java.net.URI getURI​(java.lang.String string)
        Return a URI for the supplied String from the user.
        Parameters:
        string - string to convert
        Returns:
        URI or null if the string is invalid.