Lines 17-22
Link Here
|
17 |
* Kushal Munir (IBM) - [189352] Replace with appropriate line end character on upload |
17 |
* Kushal Munir (IBM) - [189352] Replace with appropriate line end character on upload |
18 |
* David McKnight (IBM) - [190803] Canceling a long-running dstore job prints "InterruptedException" to stdout |
18 |
* David McKnight (IBM) - [190803] Canceling a long-running dstore job prints "InterruptedException" to stdout |
19 |
* David McKnight (IBM) - [196035] Wrapper SystemMessageExceptions for createFile and createFolder with RemoteFileSecurityException |
19 |
* David McKnight (IBM) - [196035] Wrapper SystemMessageExceptions for createFile and createFolder with RemoteFileSecurityException |
|
|
20 |
* Kevin Doyle (IBM) - [191548] Deleting Read-Only directory removes it from view and displays no error |
20 |
********************************************************************************/ |
21 |
********************************************************************************/ |
21 |
|
22 |
|
22 |
package org.eclipse.rse.internal.services.dstore.files; |
23 |
package org.eclipse.rse.internal.services.dstore.files; |
Lines 928-943
Link Here
|
928 |
DataElement de = getElementFor(remotePath); |
929 |
DataElement de = getElementFor(remotePath); |
929 |
DataElement status = dsStatusCommand(de, IUniversalDataStoreConstants.C_DELETE, monitor); |
930 |
DataElement status = dsStatusCommand(de, IUniversalDataStoreConstants.C_DELETE, monitor); |
930 |
if (status == null) return false; |
931 |
if (status == null) return false; |
931 |
if (de.getType().equals(IUniversalDataStoreConstants.UNIVERSAL_FILE_DESCRIPTOR)) |
932 |
if (FileSystemMessageUtil.getSourceMessage(status).equals(IServiceConstants.SUCCESS)) { |
932 |
{ |
|
|
933 |
if (FileSystemMessageUtil.getSourceMessage(status).equals(IServiceConstants.SUCCESS)) return true; |
934 |
else throw new SystemMessageException(getMessage("RSEF1300").makeSubstitution(FileSystemMessageUtil.getSourceLocation(status))); //$NON-NLS-1$ |
935 |
} |
936 |
else |
937 |
{ |
938 |
return true; |
933 |
return true; |
|
|
934 |
} else { |
935 |
throw new SystemMessageException(getMessage("RSEF1300").makeSubstitution(FileSystemMessageUtil.getSourceLocation(status))); //$NON-NLS-1$ |
939 |
} |
936 |
} |
940 |
|
|
|
941 |
} |
937 |
} |
942 |
|
938 |
|
943 |
public boolean deleteBatch(String[] remoteParents, String[] fileNames, IProgressMonitor monitor) throws SystemMessageException |
939 |
public boolean deleteBatch(String[] remoteParents, String[] fileNames, IProgressMonitor monitor) throws SystemMessageException |
Lines 953-961
Link Here
|
953 |
} |
949 |
} |
954 |
DataElement status = dsStatusCommand((DataElement) dataElements.get(0), dataElements, IUniversalDataStoreConstants.C_DELETE_BATCH, monitor); |
950 |
DataElement status = dsStatusCommand((DataElement) dataElements.get(0), dataElements, IUniversalDataStoreConstants.C_DELETE_BATCH, monitor); |
955 |
if (status == null) return false; |
951 |
if (status == null) return false; |
956 |
if (FileSystemMessageUtil.getSourceMessage(status).startsWith(IServiceConstants.FAILED)) |
952 |
if (FileSystemMessageUtil.getSourceMessage(status).equals(IServiceConstants.SUCCESS)) { |
957 |
throw new SystemMessageException(getMessage("RSEF1300").makeSubstitution(FileSystemMessageUtil.getSourceLocation(status))); //$NON-NLS-1$ |
953 |
return true; |
958 |
else return true; |
954 |
} else { |
|
|
955 |
throw new SystemMessageException(getMessage("RSEF1300").makeSubstitution(FileSystemMessageUtil.getSourceLocation(status))); //$NON-NLS-1$ |
956 |
} |
959 |
} |
957 |
} |
960 |
|
958 |
|
961 |
public boolean rename(String remoteParent, String oldName, String newName, IProgressMonitor monitor) throws SystemMessageException |
959 |
public boolean rename(String remoteParent, String oldName, String newName, IProgressMonitor monitor) throws SystemMessageException |