Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-03-17 17:43:42 -0400
committerSusan Franklin2009-03-17 17:43:42 -0400
commita18fbddb9e1c32dcd4784bf19219df1d3c20430d (patch)
tree82bc436315a84bb11cfff9ef095409da03fc32a9 /examples/org.eclipse.equinox.p2.examples.rcp.cloud
parent49f64c70a65f9f62f1880e2f5f3d814d1729b601 (diff)
downloadrt.equinox.p2-a18fbddb9e1c32dcd4784bf19219df1d3c20430d.tar.gz
rt.equinox.p2-a18fbddb9e1c32dcd4784bf19219df1d3c20430d.tar.xz
rt.equinox.p2-a18fbddb9e1c32dcd4784bf19219df1d3c20430d.zip
tutorial version
Diffstat (limited to 'examples/org.eclipse.equinox.p2.examples.rcp.cloud')
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java19
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java1
2 files changed, 2 insertions, 18 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
index 4d754b772..0d8532c29 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/Activator.java
@@ -1,20 +1,8 @@
package org.eclipse.equinox.p2.examples.rcp.cloud;
-import java.net.URI;
-import java.net.URISyntaxException;
-
-import org.eclipse.core.runtime.URIUtil;
-import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException;
-import org.eclipse.equinox.internal.provisional.p2.engine.IProfileRegistry;
-import org.eclipse.equinox.internal.provisional.p2.ui.ProfileFactory;
-import org.eclipse.equinox.internal.provisional.p2.ui.ProvUI;
-import org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil;
-import org.eclipse.equinox.internal.provisional.p2.ui.policy.IProfileChooser;
import org.eclipse.equinox.internal.provisional.p2.ui.policy.Policy;
import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.ui.statushandlers.StatusManager;
import org.osgi.framework.BundleContext;
/**
@@ -76,12 +64,7 @@ public class Activator extends AbstractUIPlugin {
private void initializeP2Policies() {
Policy policy = Policy.getDefault();
- // XXX Where a profile must be chosen, use the running profile
- policy.setProfileChooser(new IProfileChooser() {
- public String getProfileId(Shell shell) {
- return ProfileFactory.makeProfile("Canned").getProfileId();
- }
- });
+
// XXX User has no access to manipulate repositories
policy.setRepositoryManipulator(null);
}
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java
index 91a0fdb00..8064f403c 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/ApplicationActionBarAdvisor.java
@@ -91,6 +91,7 @@ public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
// XXX add preferences to tools
toolsMenu.add(preferencesAction);
+ // XXX add a group for new other tools contributions
toolsMenu.add(new Separator());
toolsMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));

Back to the top