org.eclipse.equinox.p2.operations
public class OperationFactory extends Object
ProfileChangeOperation.| Constructor and Description |
|---|
OperationFactory() |
| Modifier and Type | Method and Description |
|---|---|
InstallOperation |
createInstallOperation(Collection<IVersionedId> toInstall,
Collection<URI> repos,
IProgressMonitor monitor)
This factory method creates an
InstallOperation to install all the elements listed from the specified repositories. |
SynchronizeOperation |
createSynchronizeOperation(Collection<IVersionedId> toInstall,
Collection<URI> repos,
IProgressMonitor monitor)
This factory method creates an
SynchronizeOperation that will cause the current installation to exclusively contain the elements listed once executed. |
UninstallOperation |
createUninstallOperation(Collection<IVersionedId> toUninstall,
Collection<URI> repos,
IProgressMonitor monitor)
Create an
UninstallOperation that will uninstall the listed elements from the running instance. |
UpdateOperation |
createUpdateOperation(Collection<IVersionedId> toUpdate,
Collection<URI> repos,
IProgressMonitor monitor)
Create an
UpdateOperation that will update the elements specified. |
IQueryResult<IInstallableUnit> |
listInstalledElements(boolean rootsOnly,
IProgressMonitor monitor)
Return the
IInstallableUnit that are installed in the running instance of eclipse. |
public InstallOperation createInstallOperation(Collection<IVersionedId> toInstall, Collection<URI> repos, IProgressMonitor monitor) throws ProvisionException
InstallOperation to install all the elements listed from the specified repositories.toInstall - the elements to install. This can not be null.repos - the repositories to install the elements from.monitor - the progress monitorProvisionExceptionpublic UninstallOperation createUninstallOperation(Collection<IVersionedId> toUninstall, Collection<URI> repos, IProgressMonitor monitor) throws ProvisionException
UninstallOperation that will uninstall the listed elements from the running instance.toUninstall - the elements to uninstall. This can not be null.repos - the repositories to install the elements from. Passing null willmonitor - the progress monitorProvisionExceptionpublic IQueryResult<IInstallableUnit> listInstalledElements(boolean rootsOnly, IProgressMonitor monitor)
IInstallableUnit that are installed in the running instance of eclipse.rootsOnly - set to true to return only the elements that have been explicitly installed (aka roots).monitor - the progress monitorpublic UpdateOperation createUpdateOperation(Collection<IVersionedId> toUpdate, Collection<URI> repos, IProgressMonitor monitor) throws ProvisionException
UpdateOperation that will update the elements specified.toUpdate - repos - monitor - UpdateOperationProvisionExceptionpublic SynchronizeOperation createSynchronizeOperation(Collection<IVersionedId> toInstall, Collection<URI> repos, IProgressMonitor monitor) throws ProvisionException
SynchronizeOperation that will cause the current installation to exclusively contain the elements listed once executed.toInstall - the elements to install. This can not be null.repos - the repositories to install the elements from.monitor - the progress monitorSynchronizeOperation.ProvisionExceptionGuidelines for using Eclipse APIs. Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.