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.sdkbundlevisibility
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.sdkbundlevisibility')
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.sdkbundlevisibility/src/org/eclipse/equinox/p2/examples/rcp/sdkbundlevisibility/Activator.java11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.sdkbundlevisibility/src/org/eclipse/equinox/p2/examples/rcp/sdkbundlevisibility/Activator.java b/examples/org.eclipse.equinox.p2.examples.rcp.sdkbundlevisibility/src/org/eclipse/equinox/p2/examples/rcp/sdkbundlevisibility/Activator.java
index b1325f9c2..9d400e3ef 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.sdkbundlevisibility/src/org/eclipse/equinox/p2/examples/rcp/sdkbundlevisibility/Activator.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.sdkbundlevisibility/src/org/eclipse/equinox/p2/examples/rcp/sdkbundlevisibility/Activator.java
@@ -40,20 +40,15 @@ 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 Use the pref-based repository manipulator
policy.setRepositoryManipulator(new ColocatedRepositoryManipulator(policy, PreferenceConstants.PREF_PAGE_SITES));
- // XXX Change the visibility of the IUs shown in the UI
+ // XXX Change the visibility of the IUs shown in the UI.
+ // Using a null property for visibility means everything will be shown, not just
+ // groups (features).
IUViewQueryContext context = policy.getQueryContext();
context.setVisibleAvailableIUProperty(null);
context.setVisibleInstalledIUProperty(null);
-
}
/*

Back to the top