Search in sources :

Example 6 with IIu

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);
}
Also used : IIu(org.eclipse.epp.mpc.core.model.IIu) ArrayList(java.util.ArrayList)

Aggregations

IIu (org.eclipse.epp.mpc.core.model.IIu)6 ArrayList (java.util.ArrayList)4 HashSet (java.util.HashSet)3 IIus (org.eclipse.epp.mpc.core.model.IIus)3 INode (org.eclipse.epp.mpc.core.model.INode)3 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 URISyntaxException (java.net.URISyntaxException)1 URL (java.net.URL)1 HashMap (java.util.HashMap)1 List (java.util.List)1 NoSuchElementException (java.util.NoSuchElementException)1 CopyOnWriteArrayList (java.util.concurrent.CopyOnWriteArrayList)1 Matcher (java.util.regex.Matcher)1 CoreException (org.eclipse.core.runtime.CoreException)1 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)1 IStatus (org.eclipse.core.runtime.IStatus)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 SubMonitor (org.eclipse.core.runtime.SubMonitor)1 SearchResult (org.eclipse.epp.internal.mpc.core.model.SearchResult)1