Examples of ProvisioningContext


Examples of org.eclipse.equinox.internal.provisional.p2.engine.ProvisioningContext

        }

        long size = 0;
        if (report.getReviewedInstallableUnits().length != 0) {
            size = getSize(plan,
                    plan.getProfileChangeRequest().getProfile(), engine, new ProvisioningContext(), null);
        }
        report.setInstallationSize(getFormattedSize(size));
        return report;
    }
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.engine.ProvisioningContext

    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.engine.ProvisioningContext

      List<URI> metadataRepositoryLocations = (List<URI>)this.getPrivateField("metadataRepositoryLocations");
      List<URI> artifactRepositoryLocations = (List<URI>)this.getPrivateField("artifactRepositoryLocations");
      boolean followReferences = ((Boolean)this.getPrivateField("followReferences")).booleanValue();
      String FOLLOW_ARTIFACT_REPOSITORY_REFERENCES = (String)this.getPrivateField("FOLLOW_ARTIFACT_REPOSITORY_REFERENCES");

      ProvisioningContext context = new ProvisioningContext(targetAgent);
      context.setMetadataRepositories(metadataRepositoryLocations.toArray(new URI[metadataRepositoryLocations.size()]));
      context.setArtifactRepositories(artifactRepositoryLocations.toArray(new URI[artifactRepositoryLocations.size()]));
      context.setProperty(ProvisioningContext.FOLLOW_REPOSITORY_REFERENCES, String.valueOf(followReferences));
      context.setProperty(FOLLOW_ARTIFACT_REPOSITORY_REFERENCES, String.valueOf(followReferences));

      // EV: invoke private methods
      //ProfileChangeRequest request = buildProvisioningRequest(profile, installs, uninstalls);
      //printRequest(request);
      ProfileChangeRequest request = (ProfileChangeRequest)
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.