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