public interface IRemoteUIFileService extends IRemoteConnectionType.Service
IRemoteConnectionType.Service.Factory
Modifier and Type | Method and Description |
---|---|
java.lang.String |
browseDirectory(org.eclipse.swt.widgets.Shell shell,
java.lang.String message,
java.lang.String initialPath,
int flags)
Browse for a remote directory.
|
java.lang.String |
browseFile(org.eclipse.swt.widgets.Shell shell,
java.lang.String message,
java.lang.String initialPath,
int flags)
Browse for a remote file.
|
java.util.List<java.lang.String> |
browseFiles(org.eclipse.swt.widgets.Shell shell,
java.lang.String message,
java.lang.String initialPath,
int flags)
Browse for a set of remote files.
|
IRemoteConnection |
getConnection()
Get the last connection that was selected in the browser.
|
void |
setConnection(IRemoteConnection connection)
Set the connection to use for file browsing.
|
void |
showConnections(boolean enable)
Show a list of available connections if possible.
|
getConnectionType
java.lang.String browseDirectory(org.eclipse.swt.widgets.Shell shell, java.lang.String message, java.lang.String initialPath, int flags)
DirectoryDialog
.shell
- workbench shellmessage
- message to display in dialoginitialPath
- initial path to use when displaying filesflags
- option settings for dialog (not currently used)
valid values are NONE (@see IRemoteUIConstants)java.lang.String browseFile(org.eclipse.swt.widgets.Shell shell, java.lang.String message, java.lang.String initialPath, int flags)
FileDialog
.shell
- workbench shellmessage
- message to display in dialoginitialPath
- initial path to use when displaying filesflags
- options settings for dialog
valid values are NONE, SAVE, or OPEN (@see IRemoteUIConstants)java.util.List<java.lang.String> browseFiles(org.eclipse.swt.widgets.Shell shell, java.lang.String message, java.lang.String initialPath, int flags)
FileDialog
.shell
- workbench shellmessage
- message to display in dialoginitialPath
- initial path to use when displaying filesflags
- options settings for dialog (@see IRemoteUIConstants)
valid values are NONE, SAVE, or OPEN (@see IRemoteUIConstants)IRemoteConnection getConnection()
void setConnection(IRemoteConnection connection)
connection
- connection to use for file browsingvoid showConnections(boolean enable)
enable
- enable connection list