Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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