Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 323299 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/rse/internal/files/ui/view/SystemViewRemoteFileAdapter.java (+4 lines)
Lines 651-660 Link Here
651
		IRemoteFileSubSystem ss = file.getParentRemoteFileSubSystem();
651
		IRemoteFileSubSystem ss = file.getParentRemoteFileSubSystem();
652
		
652
		
653
		// make sure we have the lastest cached version otherwise could be working with a bad file that never got marked as stale
653
		// make sure we have the lastest cached version otherwise could be working with a bad file that never got marked as stale
654
		IRemoteFile originalFile = file;
654
		if (ss instanceof RemoteFileSubSystem){
655
		if (ss instanceof RemoteFileSubSystem){
655
			IRemoteFile cachedFile = ((RemoteFileSubSystem)ss).getCachedRemoteFile(file.getAbsolutePath());
656
			IRemoteFile cachedFile = ((RemoteFileSubSystem)ss).getCachedRemoteFile(file.getAbsolutePath());
656
			if (cachedFile != null){
657
			if (cachedFile != null){
657
				file = cachedFile;
658
				file = cachedFile;
659
				if (originalFile.isStale()){ // the original file was marked stale, so the cached one should be too
660
					file.markStale(true);
661
				}
658
			}
662
			}
659
		}
663
		}
660
664

Return to bug 323299