1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-07 16:26:11 +02:00

[216252] RemoteFileCancelledException -> RemoteFileCanceledException

This commit is contained in:
David McKnight 2008-02-21 16:20:23 +00:00
parent ba58626285
commit fec5efb321
2 changed files with 20 additions and 20 deletions

View file

@ -116,7 +116,7 @@ import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.files.IHostFile; import org.eclipse.rse.services.files.IHostFile;
import org.eclipse.rse.services.files.IHostFilePermissions; import org.eclipse.rse.services.files.IHostFilePermissions;
import org.eclipse.rse.services.files.IHostFilePermissionsContainer; import org.eclipse.rse.services.files.IHostFilePermissionsContainer;
import org.eclipse.rse.services.files.RemoteFileCancelledException; import org.eclipse.rse.services.files.RemoteFileCanceledException;
import org.eclipse.rse.services.files.RemoteFileException; import org.eclipse.rse.services.files.RemoteFileException;
import org.eclipse.rse.services.files.RemoteFileIOException; import org.eclipse.rse.services.files.RemoteFileIOException;
import org.eclipse.rse.services.files.RemoteFileSecurityException; import org.eclipse.rse.services.files.RemoteFileSecurityException;
@ -562,7 +562,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
fileName = checkEncoding(fileName); fileName = checkEncoding(fileName);
if (monitor!=null){ if (monitor!=null){
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
} }
@ -602,7 +602,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if(!listFiles(monitor)) if(!listFiles(monitor))
{ {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
synchronized(_fCachePreviousFiles) { synchronized(_fCachePreviousFiles) {
@ -662,7 +662,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
parentPath = checkEncoding(parentPath); parentPath = checkEncoding(parentPath);
if (monitor!=null){ if (monitor!=null){
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
} }
@ -692,7 +692,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if(!listFiles(monitor)) if(!listFiles(monitor))
{ {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
synchronized (_fCachePreviousFiles) { synchronized (_fCachePreviousFiles) {
@ -757,7 +757,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if (monitor!=null){ if (monitor!=null){
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
} }
else{ else{
@ -899,7 +899,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if (monitor!=null){ if (monitor!=null){
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
} }
@ -1068,7 +1068,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
{ {
if(monitor.isCanceled()) if(monitor.isCanceled())
{ {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
clearCache(parentPath); clearCache(parentPath);
@ -1279,7 +1279,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
if (monitor!=null){ if (monitor!=null){
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
} }
@ -1309,7 +1309,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
{ {
if(monitor.fMonitor.isCanceled()) if(monitor.fMonitor.isCanceled())
{ {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
boolean success = false; boolean success = false;
@ -1607,7 +1607,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
public InputStream getInputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException { public InputStream getInputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException {
if (monitor != null && monitor.isCanceled()){ if (monitor != null && monitor.isCanceled()){
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
InputStream stream = null; InputStream stream = null;
@ -1642,7 +1642,7 @@ public class FTPService extends AbstractFileService implements IFileService, IFT
remoteFile = checkEncoding(remoteFile); remoteFile = checkEncoding(remoteFile);
if (monitor != null && monitor.isCanceled()){ if (monitor != null && monitor.isCanceled()){
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
OutputStream stream = null; OutputStream stream = null;

View file

@ -74,7 +74,7 @@ import org.eclipse.rse.services.files.IFileService;
import org.eclipse.rse.services.files.IHostFile; import org.eclipse.rse.services.files.IHostFile;
import org.eclipse.rse.services.files.IHostFilePermissions; import org.eclipse.rse.services.files.IHostFilePermissions;
import org.eclipse.rse.services.files.IHostFilePermissionsContainer; import org.eclipse.rse.services.files.IHostFilePermissionsContainer;
import org.eclipse.rse.services.files.RemoteFileCancelledException; import org.eclipse.rse.services.files.RemoteFileCanceledException;
import org.eclipse.rse.services.files.RemoteFileIOException; import org.eclipse.rse.services.files.RemoteFileIOException;
import org.eclipse.rse.services.files.RemoteFileSecurityException; import org.eclipse.rse.services.files.RemoteFileSecurityException;
@ -348,10 +348,10 @@ public class SftpFileService extends AbstractFileService implements IFileService
return fChannelSftp; return fChannelSftp;
} }
protected void progressTick(IProgressMonitor monitor, int ticks) throws RemoteFileCancelledException { protected void progressTick(IProgressMonitor monitor, int ticks) throws RemoteFileCanceledException {
if (monitor!=null) { if (monitor!=null) {
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
monitor.worked(ticks); monitor.worked(ticks);
} }
@ -434,7 +434,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
fDirChannelMutex.release(); fDirChannelMutex.release();
} }
} else { } else {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
if (node==null) { if (node==null) {
node = new SftpHostFile(remoteParent, fileName, false, false, false, 0, 0); node = new SftpHostFile(remoteParent, fileName, false, false, false, 0, 0);
@ -511,7 +511,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
if (haveSubMonitor) monitor.done(); else progressTick(monitor, 40); if (haveSubMonitor) monitor.done(); else progressTick(monitor, 40);
} }
} else { } else {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
return (IHostFile[])results.toArray(new IHostFile[results.size()]); return (IHostFile[])results.toArray(new IHostFile[results.size()]);
} }
@ -822,7 +822,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
fDirChannelMutex.release(); fDirChannelMutex.release();
} }
} else { } else {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
return result; return result;
} }
@ -845,7 +845,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
fDirChannelMutex.release(); fDirChannelMutex.release();
} }
} else { } else {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
return result; return result;
} }
@ -1175,7 +1175,7 @@ public class SftpFileService extends AbstractFileService implements IFileService
throw makeSystemMessageException(e); throw makeSystemMessageException(e);
} }
if (monitor.isCanceled()) { if (monitor.isCanceled()) {
throw new RemoteFileCancelledException(); throw new RemoteFileCanceledException();
} }
return stream; return stream;
} }