diff options
author | Sergey Prigogin | 2015-07-11 00:15:57 +0000 |
---|---|---|
committer | Sergey Prigogin | 2015-07-11 00:15:57 +0000 |
commit | 0fa16ebbb7a0c6ba75bdb749634452155364b380 (patch) | |
tree | 285438d55a0ddd636c43889cebf1798d4130849c | |
parent | ae779a412b09b6b81ca6b0e5f92bd6c33f576fc9 (diff) | |
download | eclipse.platform.team-0fa16ebbb7a0c6ba75bdb749634452155364b380.tar.gz eclipse.platform.team-0fa16ebbb7a0c6ba75bdb749634452155364b380.tar.xz eclipse.platform.team-0fa16ebbb7a0c6ba75bdb749634452155364b380.zip |
Bug 464072 - [Search] Refresh on Access ignored during text searchI20150714-0800
Allow IFileStore to return EFS.ERROR_NOT_EXISTS instead of
EFS.ERROR_READ when the file doesn't exist.
Change-Id: I614cc4023f2fbddcd4d0ac4bb9221744ced3482e
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
-rw-r--r-- | bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/util/SyncFileWriter.java | 13 |
1 files changed, 9 insertions, 4 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 2748cc0a0..3f822b2b1 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2010 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Matt McCutchen (hashproduct+eclipse@gmail.com) - Bug 189304 [Sync Info] cvsignore lines should be split on whitespace + * Sergey Prigogin (Google) - [464072] Refresh on Access ignored during text search *******************************************************************************/ package org.eclipse.team.internal.ccvs.core.util; @@ -566,10 +567,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); + } } } |