Class SynchronizeOperation
java.lang.Object
org.eclipse.equinox.p2.operations.ProfileChangeOperation
org.eclipse.equinox.p2.operations.InstallOperation
org.eclipse.equinox.p2.operations.SynchronizeOperation
- All Implemented Interfaces:
- IProfileChangeJob
A 
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();
 }
 - Since:
- 2.1
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Field SummaryFields inherited from class org.eclipse.equinox.p2.operations.InstallOperationtoInstall
- 
Constructor SummaryConstructorsConstructorDescriptionSynchronizeOperation(ProvisioningSession session, Collection<IInstallableUnit> toInstall) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcomputeProfileChangeRequest(MultiStatus status, IProgressMonitor monitor) Compute the profile change request for this operation, adding any relevant intermediate status to the supplied status.Methods inherited from class org.eclipse.equinox.p2.operations.InstallOperationgetProvisioningJobName, getResolveJobNameMethods inherited from class org.eclipse.equinox.p2.operations.ProfileChangeOperationgetProfileChangeRequest, getProfileId, getProvisioningContext, getProvisioningJob, getProvisioningPlan, getResolutionDetails, getResolutionDetails, getResolutionResult, getResolveJob, hasResolved, prepareToResolve, resolveModal, setProfileId, setProvisioningContext, updateJobProvisioningContexts
- 
Constructor Details- 
SynchronizeOperation
 
- 
- 
Method Details- 
computeProfileChangeRequestDescription copied from class:ProfileChangeOperationCompute the profile change request for this operation, adding any relevant intermediate status to the supplied status.- Overrides:
- computeProfileChangeRequestin class- InstallOperation
- Parameters:
- 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
 
 
-