Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2011-06-29 01:06:41 +0000
committerPascal Rapicault2011-06-29 01:06:41 +0000
commita8d6e37f63cc02019f45617749e042019abf2626 (patch)
treefdfb3c424c6ca4739f5906e2bb6028ce30c74522 /bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director
parentefe861669515b887e58660a129680c4feb4f2998 (diff)
downloadrt.equinox.p2-a8d6e37f63cc02019f45617749e042019abf2626.tar.gz
rt.equinox.p2-a8d6e37f63cc02019f45617749e042019abf2626.tar.xz
rt.equinox.p2-a8d6e37f63cc02019f45617749e042019abf2626.zip
Bug 350380 - Java package can't install because of dependency on m2e
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director')
-rw-r--r--bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/QueryableArray.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/QueryableArray.java b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/QueryableArray.java
index 2c8ba97d5..575496d5f 100644
--- a/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/QueryableArray.java
+++ b/bundles/org.eclipse.equinox.p2.director/src/org/eclipse/equinox/internal/p2/director/QueryableArray.java
@@ -16,8 +16,7 @@ import java.util.List;
import org.eclipse.equinox.internal.p2.core.helpers.CollectionUtils;
import org.eclipse.equinox.internal.p2.metadata.InstallableUnit;
import org.eclipse.equinox.internal.p2.metadata.TranslationSupport;
-import org.eclipse.equinox.internal.p2.metadata.index.CapabilityIndex;
-import org.eclipse.equinox.internal.p2.metadata.index.IndexProvider;
+import org.eclipse.equinox.internal.p2.metadata.index.*;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.metadata.KeyWithLocale;
import org.eclipse.equinox.p2.metadata.index.IIndex;
@@ -25,6 +24,7 @@ import org.eclipse.equinox.p2.metadata.index.IIndex;
public class QueryableArray extends IndexProvider<IInstallableUnit> {
private final List<IInstallableUnit> dataSet;
private IIndex<IInstallableUnit> capabilityIndex;
+ private IIndex<IInstallableUnit> idIndex;
private TranslationSupport translationSupport;
public QueryableArray(IInstallableUnit[] ius) {
@@ -41,6 +41,11 @@ public class QueryableArray extends IndexProvider<IInstallableUnit> {
capabilityIndex = new CapabilityIndex(dataSet.iterator());
return capabilityIndex;
}
+ if (InstallableUnit.MEMBER_ID.equals(memberName)) {
+ if (idIndex == null)
+ idIndex = new IdIndex(dataSet.iterator());
+ return idIndex;
+ }
return null;
}

Back to the top