Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff McAffer2009-01-14 21:21:14 -0500
committerJeff McAffer2009-01-14 21:21:14 -0500
commit9a15ce2a2a6dc74c50a95eb6aea2545a60a89a4c (patch)
treecd28aad30db19fa7ae75bb46f9aa5fa485bba258 /bundles/org.eclipse.equinox.p2.directorywatcher
parent1c7c8eef8f0f68bda6e9dae60599d6595a99eec7 (diff)
downloadrt.equinox.p2-9a15ce2a2a6dc74c50a95eb6aea2545a60a89a4c.tar.gz
rt.equinox.p2-9a15ce2a2a6dc74c50a95eb6aea2545a60a89a4c.tar.xz
rt.equinox.p2-9a15ce2a2a6dc74c50a95eb6aea2545a60a89a4c.zip
Bug 260012 [Query] Cannot properly compose queries
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/RepositoryListener.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
index 0fe815f09..2492395b5 100644
--- a/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
+++ b/bundles/org.eclipse.equinox.p2.directorywatcher/src/org/eclipse/equinox/internal/provisional/p2/directorywatcher/RepositoryListener.java
@@ -24,8 +24,7 @@ import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.internal.provisional.p2.metadata.query.InstallableUnitQuery;
import org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepository;
import org.eclipse.equinox.internal.provisional.p2.metadata.repository.IMetadataRepositoryManager;
-import org.eclipse.equinox.internal.provisional.p2.query.Collector;
-import org.eclipse.equinox.internal.provisional.p2.query.Query;
+import org.eclipse.equinox.internal.provisional.p2.query.*;
import org.eclipse.equinox.p2.publisher.*;
import org.eclipse.equinox.p2.publisher.eclipse.BundlesAction;
import org.eclipse.equinox.p2.publisher.eclipse.FeaturesAction;
@@ -211,7 +210,7 @@ public class RepositoryListener extends DirectoryChangeListener {
// first remove any IUs that have changed or that are associated with removed files
if (!removedFiles.isEmpty() || !changes.isEmpty()) {
// create a query that will identify all ius related to removed files or ius that have changed
- Query removeQuery = new Query() {
+ IMatchQuery removeQuery = new MatchQuery() {
public boolean isMatch(Object candidate) {
if (!(candidate instanceof IInstallableUnit))
return false;

Back to the top