diff options
author | Sergey Prigogin | 2015-07-15 19:18:20 +0000 |
---|---|---|
committer | Sergey Prigogin | 2015-07-15 19:18:20 +0000 |
commit | d4eadcca6620f0c222b2b101ca33f13d2fe92176 (patch) | |
tree | 1bb006e9921378a6f461ac58946b7184f3973faa | |
parent | 0fa16ebbb7a0c6ba75bdb749634452155364b380 (diff) | |
download | eclipse.platform.team-d4eadcca6620f0c222b2b101ca33f13d2fe92176.tar.gz eclipse.platform.team-d4eadcca6620f0c222b2b101ca33f13d2fe92176.tar.xz eclipse.platform.team-d4eadcca6620f0c222b2b101ca33f13d2fe92176.zip |
Bug 464072 - [Search] Refresh on Access ignored during text searchI20150728-0800I20150721-0800
Allow IFileStore to return EFS.ERROR_NOT_EXISTS instead of
EFS.ERROR_READ when the file doesn't exist when called from the
SyncFileWriter.readFirstLine method.
Change-Id: Ibb125dcceea3e0dd47a6dbfae2cc867b2bd8fefa
-rw-r--r-- | bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java index 3f822b2b1..6b235b44b 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java +++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java @@ -510,10 +510,14 @@ public class SyncFileWriter { } catch (CoreException e) { // If the IFile doesn't exist or the underlying File doesn't exist, // just return null to indicate the absence of the file - if (e.getStatus().getCode() == IResourceStatus.RESOURCE_NOT_FOUND - || e.getStatus().getCode() == IResourceStatus.FAILED_READ_LOCAL) + switch (e.getStatus().getCode()) { + case IResourceStatus.RESOURCE_NOT_FOUND: + case IResourceStatus.NOT_FOUND_LOCAL: + case IResourceStatus.FAILED_READ_LOCAL: return null; - throw CVSException.wrapException(e); + default: + throw CVSException.wrapException(e); + } } } |