Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoribull2010-03-09 04:22:05 +0000
committeribull2010-03-09 04:22:05 +0000
commit6811abcca7f2fd085936197acaa74b64c4132956 (patch)
treea6ed4c03a5bed3ecec1d8bd1dcf79ca15e99740d /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher
parent90215b3eeef942560b1ca950c70aceee175d3da6 (diff)
downloadrt.equinox.p2-6811abcca7f2fd085936197acaa74b64c4132956.tar.gz
rt.equinox.p2-6811abcca7f2fd085936197acaa74b64c4132956.tar.xz
rt.equinox.p2-6811abcca7f2fd085936197acaa74b64c4132956.zip
bug 305064: [api] Add a progress monitor to the execute batch method
https://bugs.eclipse.org/bugs/show_bug.cgi?id=305064
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java
index d8012a631..855099226 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/TestArtifactRepository.java
@@ -25,6 +25,7 @@ import org.eclipse.equinox.p2.core.ProvisionException;
import org.eclipse.equinox.p2.metadata.IArtifactKey;
import org.eclipse.equinox.p2.metadata.Version;
import org.eclipse.equinox.p2.query.*;
+import org.eclipse.equinox.p2.repository.IRunnableWithProgress;
import org.eclipse.equinox.p2.repository.artifact.*;
import org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor;
import org.eclipse.equinox.p2.tests.TestActivator;
@@ -325,9 +326,9 @@ public class TestArtifactRepository implements IArtifactRepository {
};
}
- public IStatus executeBatch(Runnable runnable) {
+ public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) {
try {
- runnable.run();
+ runnable.run(monitor);
} catch (Exception e) {
return new Status(IStatus.ERROR, "org.eclipse.equinox.p2.tests.publisher", e.getMessage(), e);
}

Back to the top