use of org.eclipse.epp.mpc.core.model.IIu in project epp.mpc by eclipse.
the class MarketplaceNodeCatalogItem method updateInstallableUnitItems.
private void updateInstallableUnitItems() {
List<IIu> iuElements = getData().getIus().getIuElements();
List<MarketplaceNodeInstallableUnitItem> installableUnitItems = new ArrayList<MarketplaceNodeInstallableUnitItem>();
for (String iuId : installableUnits) {
MarketplaceNodeInstallableUnitItem iuItem = getInstallableUnitItem(iuId);
if (iuItem == null) {
iuItem = new MarketplaceNodeInstallableUnitItem();
iuItem.setId(iuId);
}
for (IIu iu : iuElements) {
if (iu.getId().equals(iuId)) {
iuItem.init(iu);
break;
}
}
installableUnitItems.add(iuItem);
}
doSetInstallableUnitItems(installableUnitItems);
}
Aggregations