public class P2Module extends Object
| Constructor and Description |
|---|
P2Module() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForUpdates()
Silently update the current installation using registered p2 sites.
|
void |
install(String component)
Install a component into the running system.
|
void |
registerUpdateSite(String updateSite)
Register a new p2 update site.
|
public void checkForUpdates()
public void registerUpdateSite(String updateSite) throws ProvisionException, OperationCanceledException
updateSite - site to registerProvisionException - when repository cannot be created/loadedOperationCanceledException - when user cancels the operationpublic void install(String component)
component - component id. Either the name of a plugin or the id of a feature (= feature.name.feature.group)