Bug 464072 - [Search] Refresh on Access ignored during text search

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
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 3f822b2..6b235b4 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 @@
 		} 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);
+			}
 		}
 	}