Examples of IPlanner


Examples of org.eclipse.equinox.internal.provisional.p2.director.IPlanner

        super(actionType);
    }

    public ResolutionResult reviewProfileChangeAction(IProfile profile) throws ProvisioningException {
        ProvisioningPlan plan;
        IPlanner planner;
        IProfile currentProfile;
        IProfile snapshot = ProvisioningUtils.getProfile(IProfileRegistry.SELF, timestamp);
        if (snapshot == null) {
            throw new ProvisioningException("Invalid Profile Configuration");
        }

        planner = ServiceHolder.getPlanner();
        currentProfile = ProvisioningUtils.getProfile();
        plan = planner.getDiffPlan(currentProfile, snapshot, new NullProgressMonitor());
        if (plan == null) {
            throw new ProvisioningException("Failed to generate the Provisioning Plan");
        }

        return generateResolutionResult(plan.getProfileChangeRequest(), plan, getInitialStatus());
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.director.IPlanner

    public abstract MultiStatus getInitialStatus();

    private ProvisioningPlan generateProvisioningPlan(ProfileChangeRequest profileChangeRequest)
            throws ProvisioningException {
        IPlanner planner = ServiceHolder.getPlanner();
        ProvisioningContext context = new ProvisioningContext();
        return planner.getProvisioningPlan(profileChangeRequest, context, new NullProgressMonitor());
    }
View Full Code Here

Examples of org.eclipse.equinox.p2.planner.IPlanner

    // EV: throw a regular Exception to account for reflection exceptions
    //throws CoreException
    throws Exception
  {
    // EV: pull some private vars in to local scope.
    IPlanner planner = (IPlanner)this.getPrivateField("planner");

    IProvisioningPlan result = planner.getProvisioningPlan(
        request, context, new NullProgressMonitor());
    IStatus operationStatus = result.getStatus();
    if (!operationStatus.isOK())
      throw new CoreException(operationStatus);
    executePlan(context, result);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.