Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java')
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java19
1 files changed, 6 insertions, 13 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java
index b280a5cfe..b1139a95a 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/benchmark/BenchmarkTest.java
@@ -173,9 +173,9 @@ public abstract class BenchmarkTest extends EclipseTest {
// TODO:
}
- protected void syncResources(Subscriber subscriber, IResource[] resources) throws TeamException {
+ protected void syncResources(SyncInfoSource source, Subscriber subscriber, IResource[] resources) throws TeamException {
startTask("Synchronize with Repository action");
- getSyncInfoSource().refresh(subscriber, resources);
+ source.refresh(subscriber, resources);
endTask();
}
@@ -185,9 +185,9 @@ public abstract class BenchmarkTest extends EclipseTest {
* @throws CoreException
* @throws TeamException
*/
- protected void syncCommitResources(IResource[] resources, String comment) throws TeamException, CoreException {
+ protected void syncCommitResources(SyncInfoSource source, IResource[] resources, String comment) throws TeamException, CoreException {
startTask("Synchronize outgoing changes");
- syncResources(getSyncInfoSource().createWorkspaceSubscriber(), resources);
+ syncResources(source, source.createWorkspaceSubscriber(), resources);
endTask();
// TODO: Commit all outgoing changes that are children of the given resource
// by extracting them from the subscriber sync set
@@ -200,9 +200,9 @@ public abstract class BenchmarkTest extends EclipseTest {
* @param resources
* @throws TeamException
*/
- protected void syncUpdateResources(IResource[] resources) throws TeamException {
+ protected void syncUpdateResources(SyncInfoSource source, IResource[] resources) throws TeamException {
startTask("Synchronize incoming changes");
- syncResources(getSyncInfoSource().createWorkspaceSubscriber(), resources);
+ syncResources(source, source.createWorkspaceSubscriber(), resources);
endTask();
// TODO: Update all incoming changes that are children of the given resource
// by extracting them from the subscriber sync set
@@ -217,11 +217,4 @@ public abstract class BenchmarkTest extends EclipseTest {
// Now open our empty perspective
PlatformUI.getWorkbench().showPerspective("org.eclipse.team.tests.cvs.ui.perspective1", PlatformUI.getWorkbench().getActiveWorkbenchWindow());
}
-
- /**
- * @return
- */
- private SyncInfoSource getSyncInfoSource() {
- return source;
- }
}

Back to the top