diff options
Diffstat (limited to 'providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer')
2 files changed, 2 insertions, 16 deletions
diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java index fca6b417d..95ecf8c4d 100644 --- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java +++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/outgoing/AbstractOutgoingFileTransfer.java @@ -57,8 +57,6 @@ public abstract class AbstractOutgoingFileTransfer implements IOutgoingFileTrans public static final int DEFAULT_BUF_LENGTH = 4096; - private static final int FILETRANSFER_ERRORCODE = 1001; - protected Job job; protected URL remoteFileURL; @@ -151,12 +149,7 @@ public abstract class AbstractOutgoingFileTransfer implements IOutgoingFileTrans } protected IStatus getFinalStatus(Throwable exception1) { - if (exception1 == null) - return new Status(IStatus.OK, Activator.getDefault().getBundle().getSymbolicName(), 0, Messages.AbstractOutgoingFileTransfer_Status_Transfer_Completed_OK, null); - else if (exception1 instanceof UserCancelledException) - return new Status(IStatus.CANCEL, Activator.PLUGIN_ID, FILETRANSFER_ERRORCODE, Messages.AbstractOutgoingFileTransfer_Exception_User_Cancelled, exception1); - else - return new Status(IStatus.ERROR, Activator.PLUGIN_ID, FILETRANSFER_ERRORCODE, Messages.AbstractOutgoingFileTransfer_Status_Transfer_Exception, exception1); + return Status.OK_STATUS; } protected void hardClose() { diff --git a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java index c19179da6..cba2189ae 100644 --- a/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java +++ b/providers/bundles/org.eclipse.ecf.provider.filetransfer/src/org/eclipse/ecf/provider/filetransfer/retrieve/AbstractRetrieveFileTransfer.java @@ -66,8 +66,6 @@ public abstract class AbstractRetrieveFileTransfer implements IIncomingFileTrans public static final int DEFAULT_BUF_LENGTH = 4096; - private static final int FILETRANSFER_ERRORCODE = 1001; - protected static final int POLLING_RETRY_ATTEMPTS = 20; protected static final int TIMEOUT_INPUTSTREAM_BUFFER_SIZE = 8192; @@ -247,12 +245,7 @@ public abstract class AbstractRetrieveFileTransfer implements IIncomingFileTrans } protected IStatus getFinalStatus(Throwable exception1) { - if (exception1 == null) - return new Status(IStatus.OK, Activator.PLUGIN_ID, 0, Messages.AbstractRetrieveFileTransfer_Status_Transfer_Completed_OK, null); - else if (exception1 instanceof UserCancelledException) - return new Status(IStatus.CANCEL, Activator.PLUGIN_ID, FILETRANSFER_ERRORCODE, Messages.AbstractRetrieveFileTransfer_Exception_User_Cancelled, exception1); - else - return new Status(IStatus.ERROR, Activator.PLUGIN_ID, FILETRANSFER_ERRORCODE, Messages.AbstractRetrieveFileTransfer_Status_Transfer_Exception, exception1); + return Status.OK_STATUS; } protected void hardClose() { |