Package jadex.base

Class SRemoteFileChooser


  • public class SRemoteFileChooser
    extends java.lang.Object
    Helper methods for remote file system view.
    • Constructor Detail

      • SRemoteFileChooser

        public SRemoteFileChooser()
    • Method Detail

      • init

        public static IFuture<java.lang.Object[]> init​(IExternalAccess access)
        Initialize the remote file system view such that home, default and current directory as well as roots are available.
      • getRoots

        public static IFuture<FileData[]> getRoots​(IExternalAccess access)
        Returns all root partitions on this system. For example, on Windows, this would be the "Desktop" folder, while on DOS this would be the A: through Z: drives.
      • getDefaultDirectory

        public static IFuture<FileData> getDefaultDirectory​(IExternalAccess access)
        Return the user's default starting directory for the file chooser.
        Returns:
        a File object representing the default starting folder
        Since:
        1.4
      • getParentDirectory

        public static IFuture<FileData> getParentDirectory​(IExternalAccess access,
                                                           java.lang.String path)
        Returns the parent directory of dir.
        Parameters:
        dir - the File being queried
        Returns:
        the parent directory of dir, or null if dir is null