Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-04-23 12:08:08 -0400
committerMichael Valenta2004-04-23 12:08:08 -0400
commitd76da4e98a9905b91dd32a5d93d6d5605ab9d276 (patch)
treed2bc6a0b79f6cc91062bb5d7cb1ce5bfd2d55e6d
parent6c61ce2ddf88cc12939451a408934c38a3811fcb (diff)
downloadeclipse.platform.team-d76da4e98a9905b91dd32a5d93d6d5605ab9d276.tar.gz
eclipse.platform.team-d76da4e98a9905b91dd32a5d93d6d5605ab9d276.tar.xz
eclipse.platform.team-d76da4e98a9905b91dd32a5d93d6d5605ab9d276.zip
59430: IllegalArgumentException checking out project
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java
index 89c0b62fb..969bbe99a 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutProjectOperation.java
@@ -144,9 +144,13 @@ public abstract class CheckoutProjectOperation extends CheckoutOperation {
private ISchedulingRule getSchedulingRule(IProject[] projects) {
if (projects.length == 1) {
- return projects[0];
+ return ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(projects[0]);
} else {
- return new MultiRule(projects);
+ Set rules = new HashSet();
+ for (int i = 0; i < projects.length; i++) {
+ rules.add(ResourcesPlugin.getWorkspace().getRuleFactory().modifyRule(projects[i]));
+ }
+ return new MultiRule((ISchedulingRule[]) rules.toArray(new ISchedulingRule[rules.size()]));
}
}

Back to the top