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.touchpoint.eclipse
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.touchpoint.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/META-INF/MANIFEST.MF1
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/DirectorUtil.java8
2 files changed, 4 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/META-INF/MANIFEST.MF
index 8c3e8708e..4c3b5fc95 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/META-INF/MANIFEST.MF
@@ -21,7 +21,6 @@ Import-Package: javax.xml.parsers,
org.eclipse.equinox.internal.p2.engine,
org.eclipse.equinox.internal.p2.garbagecollector,
org.eclipse.equinox.internal.provisional.frameworkadmin,
- org.eclipse.equinox.internal.provisional.p2.director;resolution:=optional,
org.eclipse.equinox.internal.provisional.p2.repository,
org.eclipse.equinox.internal.simpleconfigurator.manipulator,
org.eclipse.equinox.p2.core;version="[2.0.0,3.0.0)",
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/DirectorUtil.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/DirectorUtil.java
index 42c022ed9..683d1a64d 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/DirectorUtil.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/DirectorUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009-2010 IBM Corporation and others.
+ * Copyright (c) 2009, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,18 +13,18 @@ package org.eclipse.equinox.internal.p2.touchpoint.eclipse;
import java.net.URI;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.equinox.internal.provisional.p2.director.ProfileChangeRequest;
import org.eclipse.equinox.p2.engine.IProfile;
import org.eclipse.equinox.p2.engine.ProvisioningContext;
import org.eclipse.equinox.p2.planner.IPlanner;
+import org.eclipse.equinox.p2.planner.IProfileChangeRequest;
public class DirectorUtil {
public static IStatus validateProfile(IProfile profile) {
- ProfileChangeRequest pcr = new ProfileChangeRequest(profile);
+ IPlanner planner = (IPlanner) profile.getProvisioningAgent().getService(IPlanner.SERVICE_NAME);
+ IProfileChangeRequest pcr = planner.createChangeRequest(profile);
ProvisioningContext ctx = new ProvisioningContext(profile.getProvisioningAgent());
ctx.setMetadataRepositories(new URI[0]);
- IPlanner planner = (IPlanner) profile.getProvisioningAgent().getService(IPlanner.SERVICE_NAME);
return planner.getProvisioningPlan(pcr, ctx, null).getStatus();
}
}

Back to the top