super(queryContext);
}
public Collector perform() {
Collector collector = new Collector();
IQueryable queryable = queryContext.getQueryable();
IProfile profile = ProvisioningUtils.getProfile();
Query query = queryContext.getQuery();
if (queryable == null || profile == null) {
return collector;
}
//If the query is not set, return the list of IUs which has the property "org.eclipse.equinox.p2.type.root"
if (query == null) {
query = new IUProfilePropertyQuery(profile, IInstallableUnit.PROP_PROFILE_ROOT_IU,
Boolean.TRUE.toString());
}
return queryable.query(query, collector, null);
}