P2 Module

This module allows to interact with the eclipse p2 system that allows to modify the installed components.

Method Overview

Method Description
checkForUpdates() Silently update the current installation using registered p2 sites.
install() Install a component into the running system.
registerUpdateSite() Register a new p2 update site.

Methods

checkForUpdates

void checkForUpdates()

Silently update the current installation using registered p2 sites.

install

void install(String component)

Install a component into the running system.

component
component id. Either the name of a plugin or the id of a feature (= feature.name.feature.group)

registerUpdateSite

void registerUpdateSite(String updateSite)

Register a new p2 update site.

updateSite
site to register
ProvisionException
when repository cannot be created/loaded
OperationCanceledException
when user cancels the operation