Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-08-26 08:56:02 -0400
committerDJ Houghton2010-08-26 08:56:02 -0400
commit8c91ab7a6145a1176d8f593f209369a559aba8a9 (patch)
treeb3d00dc7b4109806a9f5dd846fab7b340d64d50d /bundles/org.eclipse.equinox.p2.directorywatcher
parentcd254bc15261f58490302ec42031775abc7f593f (diff)
downloadrt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.tar.gz
rt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.tar.xz
rt.equinox.p2-8c91ab7a6145a1176d8f593f209369a559aba8a9.zip
Bug 244628 - [api] [repository] artifact repos do not support bulk remove
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.java10
1 files changed, 10 insertions, 0 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 574a85657..05720ff83 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
@@ -156,6 +156,16 @@ public class CachingArtifactRepository implements IArtifactRepository, IFileArti
doRemoveArtifact(toRemove[i]);
}
+ public synchronized void removeDescriptors(IArtifactDescriptor[] descriptors) {
+ for (IArtifactDescriptor descriptor : descriptors)
+ doRemoveArtifact(descriptor);
+ }
+
+ public synchronized void removeDescriptors(IArtifactKey[] keys) {
+ for (IArtifactKey key : keys)
+ removeDescriptor(key);
+ }
+
/**
* Removes the given descriptor and returns <code>true</code> if and only if the
* descriptor existed in the repository, and was successfully removed.

Back to the top