Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoribull2010-03-08 23:22:05 -0500
committeribull2010-03-08 23:22:05 -0500
commit6811abcca7f2fd085936197acaa74b64c4132956 (patch)
treea6ed4c03a5bed3ecec1d8bd1dcf79ca15e99740d /bundles/org.eclipse.equinox.p2.directorywatcher
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.directorywatcher')
-rw-r--r--bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java
index 49d0dd49f..8d3e88a10 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/CachingArtifactRepository.java
@@ -19,6 +19,7 @@ import org.eclipse.equinox.p2.core.IProvisioningAgent;
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;
@@ -260,9 +261,9 @@ public class CachingArtifactRepository implements IArtifactRepository, IFileArti
return compound.query(query, monitor);
}
- 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, Activator.ID, e.getMessage(), e);
}

Back to the top