public class InstallOperation extends ProfileChangeOperation
InstallOperation op = new InstallOperation(session, new IInstallableUnit [] { myIU }); IStatus result = op.resolveModal(monitor); if (result.isOK()) { op.getProvisioningJob(monitor).schedule(); }
ProfileChangeOperation
Modifier and Type | Field and Description |
---|---|
protected Collection<IInstallableUnit> |
toInstall |
Constructor and Description |
---|
InstallOperation(ProvisioningSession session,
Collection<IInstallableUnit> toInstall)
Create an install operation on the specified provisioning session that installs
the supplied IInstallableUnits.
|
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.
|
protected String |
getProvisioningJobName()
Return an appropriate name for the provisioning job.
|
protected String |
getResolveJobName()
Return an appropriate name for the resolution job.
|
getProfileChangeRequest, getProfileId, getProvisioningContext, getProvisioningJob, getProvisioningPlan, getResolutionDetails, getResolutionDetails, getResolutionResult, getResolveJob, hasResolved, prepareToResolve, resolveModal, setProfileId, setProvisioningContext, updateJobProvisioningContexts
protected Collection<IInstallableUnit> toInstall
public InstallOperation(ProvisioningSession session, Collection<IInstallableUnit> toInstall)
session
- the session to use for obtaining provisioning servicestoInstall
- the IInstallableUnits to be installed into the profile.protected void computeProfileChangeRequest(MultiStatus status, IProgressMonitor monitor)
ProfileChangeOperation
computeProfileChangeRequest
in class ProfileChangeOperation
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 requestprotected String getResolveJobName()
ProfileChangeOperation
getResolveJobName
in class ProfileChangeOperation
protected String getProvisioningJobName()
ProfileChangeOperation
getProvisioningJobName
in class ProfileChangeOperation
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.