public class SynchronizeOperation extends InstallOperation
SynchronizeOperation
describes an operation that will modify the installation to
exclusively include the InstallableUnit mentioned. Note that all the Installable Units necessary
to satisfy the dependencies of the Installable Units installed will also be installed.
The following snippet shows how one might use an SynchronizeOperation to perform a synchronous resolution and
then kick off an install in the background:
SynchronizeOperation op = new SynchronizeOperation(session, new IInstallableUnit [] { myIU }); IStatus result = op.resolveModal(monitor); if (result.isOK()) { op.getProvisioningJob(monitor).schedule(); }
ProfileChangeOperation
toInstall
Constructor and Description |
---|
SynchronizeOperation(ProvisioningSession session,
Collection<IInstallableUnit> toInstall) |
Modifier and Type | Method and Description |
---|---|
protected void |
computeProfileChangeRequest(MultiStatus status,
IProgressMonitor monitor)
Compute the profile change request for this operation, adding any relevant intermediate status
to the supplied status.
|
getProvisioningJobName, getResolveJobName
getProfileChangeRequest, getProfileId, getProvisioningContext, getProvisioningJob, getProvisioningPlan, getResolutionDetails, getResolutionDetails, getResolutionResult, getResolveJob, hasResolved, prepareToResolve, resolveModal, setProfileId, setProvisioningContext, updateJobProvisioningContexts
public SynchronizeOperation(ProvisioningSession session, Collection<IInstallableUnit> toInstall)
protected void computeProfileChangeRequest(MultiStatus status, IProgressMonitor monitor)
ProfileChangeOperation
computeProfileChangeRequest
in class InstallOperation
status
- a multi-status to be used to add relevant status. If a profile change request cannot
be computed for any reason, a status should be added to explain the problem.monitor
- the progress monitor to use for computing the profile change request
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.