Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-05-13 15:18:25 -0400
committerjames2002-05-13 15:18:25 -0400
commitf3751ed97c33b405414527c97e6ce98e76789056 (patch)
tree76d63fc7ae7ad4620061eddb9c002d922223c368 /bundles/org.eclipse.team.cvs.ui
parent8fdf8c022877972bc40074996ecf00d6310eaef9 (diff)
downloadeclipse.platform.team-f3751ed97c33b405414527c97e6ce98e76789056.tar.gz
eclipse.platform.team-f3751ed97c33b405414527c97e6ce98e76789056.tar.xz
eclipse.platform.team-f3751ed97c33b405414527c97e6ce98e76789056.zip
Fix ignore enablement
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/IgnoreAction.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/IgnoreAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/IgnoreAction.java
index c3765116b..132b76e03 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/IgnoreAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/sync/IgnoreAction.java
@@ -81,11 +81,13 @@ public class IgnoreAction extends Action {
IResource resource = node.getResource();
ICVSResource cvsResource = CVSWorkspaceRoot.getCVSResourceFor(resource);
try {
- return !cvsResource.isManaged();
+ if (cvsResource.isManaged()) return false;
+ if (cvsResource.isIgnored()) return false;
} catch (CVSException e) {
CVSUIPlugin.log(e.getStatus());
return false;
}
+ return true;
}
public void update() {
IStructuredSelection selection = (IStructuredSelection)selectionProvider.getSelection();

Back to the top