Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2010-09-23 15:30:37 -0400
committerDJ Houghton2010-09-23 15:30:37 -0400
commit7e4d50250eeda4a63c933c1b1ab37fe739b4b5cd (patch)
tree6e579a5d54af748e7222ebbb43153fbe2bce07d6 /bundles/org.eclipse.equinox.p2.console
parentfeab2aa7b06d7ac2dfa883dce160a7e3d0015fa3 (diff)
downloadrt.equinox.p2-7e4d50250eeda4a63c933c1b1ab37fe739b4b5cd.tar.gz
rt.equinox.p2-7e4d50250eeda4a63c933c1b1ab37fe739b4b5cd.tar.xz
rt.equinox.p2-7e4d50250eeda4a63c933c1b1ab37fe739b4b5cd.zip
Bug 309539 - [planner] Make ProfileChangeRequest internal
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.console')
-rw-r--r--bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java b/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java
index 883f58071..46fe0e617 100644
--- a/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java
+++ b/bundles/org.eclipse.equinox.p2.console/src/org/eclipse/equinox/internal/p2/console/ProvisioningHelper.java
@@ -17,13 +17,13 @@ import java.util.Map;
import org.eclipse.core.runtime.*;
import org.eclipse.equinox.internal.p2.core.helpers.ServiceHelper;
import org.eclipse.equinox.internal.provisional.p2.director.PlanExecutionHelper;
-import org.eclipse.equinox.internal.provisional.p2.director.ProfileChangeRequest;
import org.eclipse.equinox.p2.core.IProvisioningAgent;
import org.eclipse.equinox.p2.core.ProvisionException;
import org.eclipse.equinox.p2.engine.*;
import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.metadata.Version;
import org.eclipse.equinox.p2.planner.IPlanner;
+import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
import org.eclipse.equinox.p2.query.*;
import org.eclipse.equinox.p2.repository.IRepositoryManager;
import org.eclipse.equinox.p2.repository.artifact.IArtifactRepository;
@@ -199,7 +199,7 @@ public class ProvisioningHelper {
if (engine == null)
throw new ProvisionException("No director service found.");
ProvisioningContext context = new ProvisioningContext(agent);
- ProfileChangeRequest request = new ProfileChangeRequest(profile);
+ IProfileChangeRequest request = planner.createChangeRequest(profile);
request.addAll(units.toUnmodifiableSet());
IProvisioningPlan result = planner.getProvisioningPlan(request, context, progress);
return PlanExecutionHelper.executePlan(result, engine, context, progress);
@@ -299,7 +299,7 @@ public class ProvisioningHelper {
if (engine == null)
throw new ProvisionException("No engine service found.");
ProvisioningContext context = new ProvisioningContext(agent);
- ProfileChangeRequest request = new ProfileChangeRequest(profile);
+ IProfileChangeRequest request = planner.createChangeRequest(profile);
request.removeAll(units.toUnmodifiableSet());
IProvisioningPlan result = planner.getProvisioningPlan(request, context, progress);
return PlanExecutionHelper.executePlan(result, engine, context, progress);

Back to the top