Search in sources :

Example 1 with Ius

use of org.eclipse.epp.internal.mpc.core.model.Ius in project epp.mpc by eclipse.

the class MarketplaceInfoTest method createTestItem.

public static MarketplaceNodeCatalogItem createTestItem() throws Exception {
    MarketplaceNodeCatalogItem item = new MarketplaceNodeCatalogItem();
    item.setMarketplaceUrl(new URL("http://marketplace.eclipse.org"));
    item.setId("123");
    Node node = new Node();
    node.setId(item.getId());
    node.setUrl("http://marketplace.eclipse.org/node/" + node.getId());
    node.setIus(new Ius());
    addIu(node, "com.example.test.a1");
    addIu(node, "com.example.test.a2");
    item.setData(node);
    item.setInstallableUnits(node.getIus().getIu());
    return item;
}
Also used : Ius(org.eclipse.epp.internal.mpc.core.model.Ius) Node(org.eclipse.epp.internal.mpc.core.model.Node) INode(org.eclipse.epp.mpc.core.model.INode) MarketplaceNodeCatalogItem(org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceNodeCatalogItem) URL(java.net.URL)

Example 2 with Ius

use of org.eclipse.epp.internal.mpc.core.model.Ius in project epp.mpc by eclipse.

the class MarketplaceCatalogTest method setupNodes.

protected void setupNodes() {
    Node node = new Node();
    node.setName("Not installed");
    node.setId("1001");
    node.setIus(new Ius());
    node.getIus().getIuElements().add(new Iu("org.example.notinstalled.iu"));
    discoveryNodes.add(node);
    node = new Node();
    node.setName("Up to date");
    node.setId("1002");
    node.setIus(new Ius());
    node.getIus().getIuElements().add(new Iu("org.example.installed.iu"));
    discoveryNodes.add(node);
    installedNodes.add(node);
    node = new Node();
    node.setName("Update available");
    node.setId("1003");
    node.setIus(new Ius());
    node.getIus().getIuElements().add(new Iu("org.example.updateable.iu"));
    discoveryNodes.add(node);
    installedNodes.add(node);
    updateAvailable.add(node);
}
Also used : Ius(org.eclipse.epp.internal.mpc.core.model.Ius) IIus(org.eclipse.epp.mpc.core.model.IIus) Node(org.eclipse.epp.internal.mpc.core.model.Node) INode(org.eclipse.epp.mpc.core.model.INode) Iu(org.eclipse.epp.internal.mpc.core.model.Iu) IIu(org.eclipse.epp.mpc.core.model.IIu)

Aggregations

Ius (org.eclipse.epp.internal.mpc.core.model.Ius)2 Node (org.eclipse.epp.internal.mpc.core.model.Node)2 INode (org.eclipse.epp.mpc.core.model.INode)2 URL (java.net.URL)1 Iu (org.eclipse.epp.internal.mpc.core.model.Iu)1 MarketplaceNodeCatalogItem (org.eclipse.epp.internal.mpc.ui.catalog.MarketplaceNodeCatalogItem)1 IIu (org.eclipse.epp.mpc.core.model.IIu)1 IIus (org.eclipse.epp.mpc.core.model.IIus)1