Lines 19-24
Link Here
|
19 |
* David McKnight (IBM) - [210109] store constants in IFileService rather than IFileServiceConstants |
19 |
* David McKnight (IBM) - [210109] store constants in IFileService rather than IFileServiceConstants |
20 |
* Martin Oberhuber (Wind River) - [210109] no need to declare IFileService constants in AbstractFileService |
20 |
* Martin Oberhuber (Wind River) - [210109] no need to declare IFileService constants in AbstractFileService |
21 |
* David McKnight (IBM) - [209704] [api] Ability to override default encoding conversion needed. |
21 |
* David McKnight (IBM) - [209704] [api] Ability to override default encoding conversion needed. |
|
|
22 |
* Xuan Chen (IBM) - [210555] [regression] NPE when deleting a file on SSH |
22 |
********************************************************************************/ |
23 |
********************************************************************************/ |
23 |
|
24 |
|
24 |
package org.eclipse.rse.services.files; |
25 |
package org.eclipse.rse.services.files; |
Lines 131-144
Link Here
|
131 |
public boolean deleteBatch(String[] remoteParents, String[] fileNames, IProgressMonitor monitor) throws SystemMessageException |
132 |
public boolean deleteBatch(String[] remoteParents, String[] fileNames, IProgressMonitor monitor) throws SystemMessageException |
132 |
{ |
133 |
{ |
133 |
boolean ok = true; |
134 |
boolean ok = true; |
134 |
SystemMessage msg = getMessage("RSEF1315"); //$NON-NLS-1$ |
|
|
135 |
String deletingMessage = msg.makeSubstitution("").getLevelOneText(); //$NON-NLS-1$ |
136 |
monitor.beginTask(deletingMessage, remoteParents.length); |
137 |
for (int i = 0; i < remoteParents.length; i++) |
135 |
for (int i = 0; i < remoteParents.length; i++) |
138 |
{ |
136 |
{ |
139 |
monitor.subTask(msg.makeSubstitution(fileNames[i]).getLevelOneText()); |
|
|
140 |
ok = ok && delete(remoteParents[i], fileNames[i], monitor); |
137 |
ok = ok && delete(remoteParents[i], fileNames[i], monitor); |
141 |
monitor.worked(1); |
|
|
142 |
} |
138 |
} |
143 |
return ok; |
139 |
return ok; |
144 |
} |
140 |
} |