Search in sources :

Example 1 with Icon

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);
}
Also used : Icon(org.eclipse.equinox.internal.p2.discovery.model.Icon)

Example 2 with 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;
}
Also used : Icon(org.eclipse.equinox.internal.p2.discovery.model.Icon)

Example 3 with 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);
}
Also used : Icon(org.eclipse.equinox.internal.p2.discovery.model.Icon)

Aggregations

Icon (org.eclipse.equinox.internal.p2.discovery.model.Icon)3