|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.files.ui.resources.UniversalFileTransferUtility
Utility class for doing file transfers on universal systems
| Nested Class Summary | |
|---|---|
static class |
UniversalFileTransferUtility.RenameRunnable
|
static class |
UniversalFileTransferUtility.RenameStatus
|
| Constructor Summary | |
|---|---|
UniversalFileTransferUtility()
|
|
| Method Summary | |
|---|---|
protected static String |
checkForCollision(IRemoteFile targetFolder,
String oldName)
|
protected static UniversalFileTransferUtility.RenameStatus |
checkForCollision(SystemRemoteResourceSet existingFiles,
IRemoteFile targetFolder,
String oldName,
String oldPath)
|
protected static void |
cleanup(IRemoteFile arc1,
File arc2)
|
static IResource |
compressedCopyRemoteResourceToWorkspace(IRemoteFile directory,
IProgressMonitor monitor)
|
static void |
compressedCopyWorkspaceResourceToRemote(IContainer directory,
IRemoteFile newTargetFolder,
IProgressMonitor monitor)
|
protected static IFile |
copyRemoteFileToWorkspace(File srcFileOrFolder,
IProgressMonitor monitor)
Replicates a local file to the temp files project in the workspace. |
protected static IFile |
copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder,
IProgressMonitor monitor)
replicates a remote file to the temp files project in the workspace |
static SystemWorkspaceResourceSet |
copyRemoteResourcesToWorkspace(SystemRemoteResourceSet remoteSet,
IProgressMonitor monitor)
Replicates a set of remote files or folders to the workspace |
static Object |
copyRemoteResourceToWorkspace(File srcFileOrFolder,
IProgressMonitor monitor)
|
static Object |
copyRemoteResourceToWorkspace(IRemoteFile srcFileOrFolder,
IProgressMonitor monitor)
Replicates a remote file or folder to the workspace |
static SystemRemoteResourceSet |
copyWorkspaceResourcesToRemote(SystemWorkspaceResourceSet workspaceSet,
IRemoteFile targetFolder,
IProgressMonitor monitor,
boolean checkForCollisions)
Perform a copy via drag and drop. |
static Object |
copyWorkspaceResourceToRemote(IResource srcFileOrFolder,
IRemoteFile targetFolder,
IProgressMonitor monitor)
Perform a copy via drag and drop. |
static Object |
copyWorkspaceResourceToRemote(IResource srcFileOrFolder,
IRemoteFile targetFolder,
IProgressMonitor monitor,
boolean checkForCollisions)
Perform a copy via drag and drop. |
protected static boolean |
download(File file,
IFile tempFile,
String hostEncoding,
IProgressMonitor monitor)
|
static String |
getActualHostFor(ISubSystem subsystem,
String remotePath)
|
static String |
getActualHostFor(String hostname,
String remotePath)
|
protected static String |
getArchiveExtensionFromProperties()
|
static IResource |
getTempFileFor(File srcFileOrFolder)
Returns the corresponding temp file location for a local file or folder. |
static IResource |
getTempFileFor(IRemoteFile srcFileOrFolder)
Returns the corresponding temp file location for a remote file or folder |
protected static String |
getWorkspaceRemotePath(ISubSystem subsystem,
String remotePath)
|
protected static String |
getWorkspaceRemotePath(String hostname,
String remotePath)
|
protected static boolean |
isRemoteFileMounted(ISubSystem subsystem,
String remotePath)
|
protected static boolean |
isRemoteFileMounted(String hostname,
String remotePath)
|
protected static String |
normalizePath(String localpath,
char rmtSeparator)
|
protected static void |
setIFileProperties(IFile tempFile,
File remoteFile,
String hostname)
|
protected static void |
setIFileProperties(IFile tempFile,
IRemoteFile remoteFile,
IRemoteFileSubSystem subSystem)
|
protected static void |
setReadOnly(IFile file,
boolean flag)
|
static void |
transferProperties(IResource source,
IRemoteFile target,
IProgressMonitor monitor)
|
static void |
transferRemoteResource(IRemoteFile srcFileOrFolder,
IRemoteFile tgtFolder,
IProgressMonitor monitor)
Transfer a remote file or folder from one remote location to another. |
protected static String |
useLocalSeparator(String virtualPath)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UniversalFileTransferUtility()
| Method Detail |
public static void transferRemoteResource(IRemoteFile srcFileOrFolder,
IRemoteFile tgtFolder,
IProgressMonitor monitor)
srcFileOrFolder - the file or folder to copytgtFolder - the folder to copy tomonitor - the progress monitor
protected static IFile copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder,
IProgressMonitor monitor)
srcFileOrFolder - the file to copymonitor - the progress monitor
protected static void setIFileProperties(IFile tempFile,
IRemoteFile remoteFile,
IRemoteFileSubSystem subSystem)
protected static void setIFileProperties(IFile tempFile,
File remoteFile,
String hostname)
public static SystemWorkspaceResourceSet copyRemoteResourcesToWorkspace(SystemRemoteResourceSet remoteSet,
IProgressMonitor monitor)
remoteSet - the objects which are being copiedmonitor - a progress monitor
public static Object copyRemoteResourceToWorkspace(File srcFileOrFolder,
IProgressMonitor monitor)
protected static IFile copyRemoteFileToWorkspace(File srcFileOrFolder,
IProgressMonitor monitor)
srcFileOrFolder - the file to copy.monitor - the progress monitor.
protected static boolean download(File file,
IFile tempFile,
String hostEncoding,
IProgressMonitor monitor)
public static Object copyRemoteResourceToWorkspace(IRemoteFile srcFileOrFolder,
IProgressMonitor monitor)
srcFileOrFolder - the object which is being copiedmonitor - a progress monitor
public static Object copyWorkspaceResourceToRemote(IResource srcFileOrFolder,
IRemoteFile targetFolder,
IProgressMonitor monitor)
srcFileOrFolder - the object to be copied. If the target and source are not on the same system, then this is a
temporary object produced by the doDrag.targetFolder - the object to be copied to.monitor - the progress monitor
public static SystemRemoteResourceSet copyWorkspaceResourcesToRemote(SystemWorkspaceResourceSet workspaceSet,
IRemoteFile targetFolder,
IProgressMonitor monitor,
boolean checkForCollisions)
workspaceSet - the objects to be copied. If the target and sources are not on the same system, then this is a
temporary object produced by the doDrag.targetFolder - the object to be copied to.monitor - the progress monitorcheckForCollisions - indicates whether to check for colllisions or not
public static Object copyWorkspaceResourceToRemote(IResource srcFileOrFolder,
IRemoteFile targetFolder,
IProgressMonitor monitor,
boolean checkForCollisions)
srcFileOrFolder - the object to be copied. If the target and source are not on the same system, then this is a
temporary object produced by the doDrag.targetFolder - the object to be copied to.monitor - the progress monitorcheckForCollisions - indicates whether to check for colllisions or not
public static void compressedCopyWorkspaceResourceToRemote(IContainer directory,
IRemoteFile newTargetFolder,
IProgressMonitor monitor)
throws Exception
Exception
protected static void setReadOnly(IFile file,
boolean flag)
public static void transferProperties(IResource source,
IRemoteFile target,
IProgressMonitor monitor)
throws CoreException,
RemoteFileSecurityException,
RemoteFileIOException,
SystemMessageException
CoreException
RemoteFileSecurityException
RemoteFileIOException
SystemMessageExceptionprotected static String getArchiveExtensionFromProperties()
public static IResource compressedCopyRemoteResourceToWorkspace(IRemoteFile directory,
IProgressMonitor monitor)
throws Exception
Exception
protected static void cleanup(IRemoteFile arc1,
File arc2)
throws RemoteFileIOException,
RemoteFileSecurityException,
RemoteFolderNotEmptyException
RemoteFileIOException
RemoteFileSecurityException
RemoteFolderNotEmptyExceptionprotected static String useLocalSeparator(String virtualPath)
public static IResource getTempFileFor(IRemoteFile srcFileOrFolder)
srcFileOrFolder - the remote file or folder
protected static String normalizePath(String localpath,
char rmtSeparator)
public static IResource getTempFileFor(File srcFileOrFolder)
srcFileOrFolder - the local file or folder.
public static String getActualHostFor(ISubSystem subsystem,
String remotePath)
public static String getActualHostFor(String hostname,
String remotePath)
protected static boolean isRemoteFileMounted(ISubSystem subsystem,
String remotePath)
protected static boolean isRemoteFileMounted(String hostname,
String remotePath)
protected static String getWorkspaceRemotePath(ISubSystem subsystem,
String remotePath)
protected static String getWorkspaceRemotePath(String hostname,
String remotePath)
protected static UniversalFileTransferUtility.RenameStatus checkForCollision(SystemRemoteResourceSet existingFiles,
IRemoteFile targetFolder,
String oldName,
String oldPath)
protected static String checkForCollision(IRemoteFile targetFolder,
String oldName)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||