From 5577903f0201edb6e0bf9a21a9e615e626964a3f Mon Sep 17 00:00:00 2001 From: Kushal Munir < kmunir@ca.ibm.com> Date: Fri, 6 Apr 2007 16:19:26 +0000 Subject: [PATCH] [170916] [plan][efs] Fix and improve the RSE EFS integration. Remove unnecessary implementation of local file cache. --- .../eclipse/filesystem/RSEFileStore.java | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.eclipse.filesystem/src/org/eclipse/rse/internal/eclipse/filesystem/RSEFileStore.java b/rse/plugins/org.eclipse.rse.eclipse.filesystem/src/org/eclipse/rse/internal/eclipse/filesystem/RSEFileStore.java index f3cd204d835..7d1103d238d 100644 --- a/rse/plugins/org.eclipse.rse.eclipse.filesystem/src/org/eclipse/rse/internal/eclipse/filesystem/RSEFileStore.java +++ b/rse/plugins/org.eclipse.rse.eclipse.filesystem/src/org/eclipse/rse/internal/eclipse/filesystem/RSEFileStore.java @@ -416,54 +416,6 @@ public class RSEFileStore extends FileStore implements IFileStore return new RSEFileStore(this, _subSystem, _absolutePath, name); } - public File toLocalFile(int options, IProgressMonitor monitor) throws CoreException - { - if (options == EFS.CACHE) { - return super.toLocalFile(options, monitor); - } - else { - - if (!_subSystem.isConnected()) { - - try { - _subSystem.connect(monitor); - } - catch (Exception e) { - throw new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), "Could not connect to subsystem", e)); //$NON-NLS-1$ - } - } - - // at this point get the live remote file - try { - _remoteFile = _subSystem.getRemoteFileObject(_absolutePath); - } - catch (Exception e) { - throw new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), "Could not get remote file", e)); //$NON-NLS-1$ - } - - if (_remoteFile.exists()) { - - RSEFileCache cache = RSEFileCache.getInstance(); - InputStream inputStream = null; - - try { - - if (_remoteFile.isFile()) { - inputStream = new RSEFileStoreInputStream(_subSystem.getInputStream(_remoteFile.getParentRemoteFileSubSystem().getHost().getHostName(), _remoteFile.getName(), true, monitor)); - } - - return cache.writeToCache(_remoteFile, inputStream); - } - catch (SystemMessageException e) { - throw new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), "Could not get input stream", e)); //$NON-NLS-1$ - } - } - else { - return null; - } - } - } - public void delete(int options, IProgressMonitor monitor) throws CoreException { if (!_subSystem.isConnected()) {