Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-09-23 18:45:14 +0000
committerMichael Valenta2004-09-23 18:45:14 +0000
commita68d6b05143a5a6a8b3911c9037127eca33feb82 (patch)
treed54cdada81141d9562a5777a565aa05fa9a151dc
parentc26e28e9ea98b59d55d9c8293763ad1aaac6516a (diff)
downloadeclipse.platform.team-a68d6b05143a5a6a8b3911c9037127eca33feb82.tar.gz
eclipse.platform.team-a68d6b05143a5a6a8b3911c9037127eca33feb82.tar.xz
eclipse.platform.team-a68d6b05143a5a6a8b3911c9037127eca33feb82.zip
Initial test case for commit sets
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelManager.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelManager.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelManager.java
index 27bae8b37..4a5bfe6e7 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelManager.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/subscriber/ChangeLogModelManager.java
@@ -36,9 +36,8 @@ public class ChangeLogModelManager extends HierarchicalModelManager implements I
update();
}
public void run() {
- enabled = !enabled;
+ setCommitSetsEnabled(!enabled);
update();
- setInput(getSelectedProviderId(), null);
}
private void update() {
setChecked(enabled);
@@ -125,4 +124,21 @@ public class ChangeLogModelManager extends HierarchicalModelManager implements I
}
super.initialize(configuration);
}
+
+ /*
+ * This method is public so it can be invoked from test cases
+ */
+ public void setCommitSetsEnabled(boolean enable) {
+ if (this.enabled != enable) {
+ this.enabled = enable;
+ setInput(getSelectedProviderId(), null);
+ }
+ }
+
+ /* (non-Javadoc)
+ * This method is public so it can be invoked from test cases
+ */
+ public ISynchronizeModelProvider getActiveModelProvider() {
+ return super.getActiveModelProvider();
+ }
}

Back to the top