use of org.eclipse.equinox.internal.p2.discovery.model.Icon in project epp.mpc by eclipse.
the class MarketplaceDiscoveryStrategy method createIcon.
private static void createIcon(CatalogItem catalogItem, final INode node) {
Icon icon = new Icon();
// don't know the size
icon.setImage32(node.getImage());
icon.setImage48(node.getImage());
icon.setImage64(node.getImage());
icon.setImage128(node.getImage());
catalogItem.setIcon(icon);
}
use of org.eclipse.equinox.internal.p2.discovery.model.Icon in project epp.mpc by eclipse.
the class AbstractMarketplaceDiscoveryItem method createIcon.
protected static Icon createIcon(String path) {
Icon icon = new Icon();
icon.setImage128(path);
icon.setImage64(path);
icon.setImage32(path);
icon.setImage16(path);
return icon;
}
use of org.eclipse.equinox.internal.p2.discovery.model.Icon in project epp.mpc by eclipse.
the class FavoritesDiscoveryStrategy method createIcon.
private static void createIcon(CatalogItem catalogItem, final IFavoriteList list) {
Icon icon = new Icon();
// don't know the size
icon.setImage32(list.getIcon());
icon.setImage48(list.getIcon());
icon.setImage64(list.getIcon());
icon.setImage128(list.getIcon());
catalogItem.setIcon(icon);
}
Aggregations