use of org.eclipse.equinox.p2.query.IQuery in project archi by archimatetool.
the class P2Handler method getInstalledFeatures.
List<IInstallableUnit> getInstalledFeatures() throws ProvisionException {
IProfile profile = getDefaultProfile();
ArrayList<IInstallableUnit> list = new ArrayList<IInstallableUnit>();
IQuery<IInstallableUnit> query = QueryUtil.createIUGroupQuery();
IQueryResult<IInstallableUnit> queryResult = profile.query(query, null);
for (IInstallableUnit feature : queryResult) {
if (!isInternalFeature(feature)) {
list.add(feature);
}
}
return list;
}
Aggregations