|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.equinox.p2.operations.ProfileChangeOperation
org.eclipse.equinox.p2.operations.InstallOperation
public class InstallOperation
An InstallOperation describes an operation that installs IInstallableUnits into a profile. The following snippet shows how one might use an InstallOperation to perform a synchronous resolution and then kick off an install in the background:
InstallOperation op = new InstallOperation(session, new IInstallableUnit [] { myIU });
IStatus result = op.resolveModal(monitor);
if (result.isOK()) {
op.getProvisioningJob(monitor).schedule();
}
ProfileChangeOperation| Constructor Summary | |
|---|---|
InstallOperation(ProvisioningSession session,
java.util.Collection<IInstallableUnit> toInstall)
Create an install operation on the specified provisioning session that installs the supplied IInstallableUnits. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.eclipse.equinox.p2.operations.ProfileChangeOperation |
|---|
getProfileChangeRequest, getProfileId, getProvisioningContext, getProvisioningJob, getProvisioningPlan, getResolutionDetails, getResolutionDetails, getResolutionResult, getResolveJob, hasResolved, prepareToResolve, resolveModal, setProfileId, setProvisioningContext, updateJobProvisioningContexts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstallOperation(ProvisioningSession session,
java.util.Collection<IInstallableUnit> toInstall)
session - the session to use for obtaining provisioning servicestoInstall - the IInstallableUnits to be installed into the profile.| Method Detail |
|---|
protected void computeProfileChangeRequest(MultiStatus status,
IProgressMonitor monitor)
ProfileChangeOperation
computeProfileChangeRequest 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 getResolveJobName()
ProfileChangeOperation
getResolveJobName in class ProfileChangeOperationprotected java.lang.String getProvisioningJobName()
ProfileChangeOperation
getProvisioningJobName in class ProfileChangeOperation
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.