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