Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-10-16 15:45:43 +0000
committerMichael Valenta2003-10-16 15:45:43 +0000
commitbff61b7227693c8ada76d0877de33fff7a81ea03 (patch)
treea942ea9e85183a1765e4e219eb3f8e625b89f9ad
parentae15fdf2a64173f4ed82d9ce8812eb7cb270e43e (diff)
downloadeclipse.platform.team-bff61b7227693c8ada76d0877de33fff7a81ea03.tar.gz
eclipse.platform.team-bff61b7227693c8ada76d0877de33fff7a81ea03.tar.xz
eclipse.platform.team-bff61b7227693c8ada76d0877de33fff7a81ea03.zip
Proper return code for read-only files in projects without a provider
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/DefaultFileModificationValidator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/DefaultFileModificationValidator.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/DefaultFileModificationValidator.java
index 09742418d..82bf0d998 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/DefaultFileModificationValidator.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/internal/core/DefaultFileModificationValidator.java
@@ -12,6 +12,7 @@ package org.eclipse.team.internal.core;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFileModificationValidator;
+import org.eclipse.core.resources.IResourceStatus;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.Status;
@@ -22,7 +23,7 @@ public class DefaultFileModificationValidator implements IFileModificationValida
private IStatus getDefaultStatus(IFile file) {
return file.isReadOnly()
- ? new Status(Status.ERROR, TeamPlugin.ID, Status.ERROR, Policy.bind("FileModificationValidator.fileIsReadOnly", file.getFullPath().toString()), null) //$NON-NLS-1$
+ ? new Status(Status.ERROR, TeamPlugin.ID, IResourceStatus.READ_ONLY_LOCAL, Policy.bind("FileModificationValidator.fileIsReadOnly", file.getFullPath().toString()), null) //$NON-NLS-1$
: OK;
}

Back to the top