Package jadex.base
Class SRemoteFileChooser
- java.lang.Object
-
- jadex.base.SRemoteFileChooser
-
public class SRemoteFileChooser extends java.lang.ObjectHelper methods for remote file system view.
-
-
Constructor Summary
Constructors Constructor Description SRemoteFileChooser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IFuture<FileData>getCurrentDirectory(IExternalAccess access)Get the current directory of the remote VM.static IFuture<FileData>getDefaultDirectory(IExternalAccess access)Return the user's default starting directory for the file chooser.static IFuture<FileData[]>getFiles(IExternalAccess access, FileData mydir, boolean useFileHiding)Gets the list of shown (i.e.static IFuture<FileData>getHomeDirectory(IExternalAccess access)static IFuture<FileData>getParentDirectory(IExternalAccess access, java.lang.String path)Returns the parent directory ofdir.static IFuture<FileData[]>getRoots(IExternalAccess access)Returns all root partitions on this system.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.
-
-
-
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.
-
getHomeDirectory
public static IFuture<FileData> getHomeDirectory(IExternalAccess access)
-
getCurrentDirectory
public static IFuture<FileData> getCurrentDirectory(IExternalAccess access)
Get the current directory of the remote VM.
-
getDefaultDirectory
public static IFuture<FileData> getDefaultDirectory(IExternalAccess access)
Return the user's default starting directory for the file chooser.- Returns:
- a
Fileobject representing the default starting folder - Since:
- 1.4
-
getFiles
public static IFuture<FileData[]> getFiles(IExternalAccess access, FileData mydir, boolean useFileHiding)
Gets the list of shown (i.e. not hidden) files.
-
getParentDirectory
public static IFuture<FileData> getParentDirectory(IExternalAccess access, java.lang.String path)
Returns the parent directory ofdir.- Parameters:
dir- theFilebeing queried- Returns:
- the parent directory of
dir, ornullifdirisnull
-
-