Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjames2002-02-15 17:23:11 -0500
committerjames2002-02-15 17:23:11 -0500
commit9f5bb6bd9d45e42c22e26988a7f06901aa6c090a (patch)
tree57c1326727747e5eb8530c3c0e5d57fcded6907c
parente1e0a47535cca35af4d0a6815d1562304970cb97 (diff)
downloadeclipse.platform.team-9f5bb6bd9d45e42c22e26988a7f06901aa6c090a.tar.gz
eclipse.platform.team-9f5bb6bd9d45e42c22e26988a7f06901aa6c090a.tar.xz
eclipse.platform.team-9f5bb6bd9d45e42c22e26988a7f06901aa6c090a.zip
9473: Compare with Revision... should be disabled for non-managed files
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java
index 228a7c1fc..1b997b583 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/CompareWithRevisionAction.java
@@ -75,6 +75,8 @@ public class CompareWithRevisionAction extends TeamAction {
*/
protected boolean isEnabled() throws TeamException {
IResource[] resources = getSelectedResources();
- return resources.length == 1;
+ if (resources.length != 1) return false;
+ CVSTeamProvider provider = (CVSTeamProvider)TeamPlugin.getManager().getProvider(resources[0]);
+ return provider.isManaged(resources[0]);
}
} \ No newline at end of file

Back to the top