public class UninstallOperation extends ProfileChangeOperation
IInstallableUnits from
a profile.
The following snippet shows how one might use an UninstallOperation to perform a synchronous resolution and
then kick off an uninstall in the background:
UninstallOperation op = new UninstallOperation(session, new IInstallableUnit [] { removeThisIU });
IStatus result = op.resolveModal(monitor);
if (result.isOK()) {
op.getProvisioningJob(monitor).schedule();
}
| Constructor and Description |
|---|
UninstallOperation(ProvisioningSession session,
java.util.Collection<IInstallableUnit> toUninstall)
Create an uninstall operation on the specified provisioning session that uninstalls
the specified 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 java.lang.String |
getProvisioningJobName()
Return an appropriate name for the provisioning job.
|
protected java.lang.String |
getResolveJobName()
Return an appropriate name for the resolution job.
|
getProfileChangeRequest, getProfileId, getProvisioningContext, getProvisioningJob, getProvisioningPlan, getResolutionDetails, getResolutionDetails, getResolutionResult, getResolveJob, hasResolved, prepareToResolve, resolveModal, setProfileId, setProvisioningContext, updateJobProvisioningContextspublic UninstallOperation(ProvisioningSession session, java.util.Collection<IInstallableUnit> toUninstall)
session - the session to use for obtaining provisioning servicestoUninstall - the IInstallableUnits to be installed into the profile.protected void computeProfileChangeRequest(MultiStatus status,
IProgressMonitor monitor)
ProfileChangeOperationcomputeProfileChangeRequest in class ProfileChangeOperationstatus - 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 java.lang.String getProvisioningJobName()
ProfileChangeOperationgetProvisioningJobName in class ProfileChangeOperationprotected java.lang.String getResolveJobName()
ProfileChangeOperationgetResolveJobName in class ProfileChangeOperation