Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSusan Franklin2009-03-19 23:22:30 +0000
committerSusan Franklin2009-03-19 23:22:30 +0000
commit38975efbe1ed2b17493745b9971058261a9da105 (patch)
treefccdcbf6ef30f512fe3666d715c480ef8766ee1c /examples
parent62ea11e360b5066fb2c2e3fbf4384f437486ea0c (diff)
downloadrt.equinox.p2-38975efbe1ed2b17493745b9971058261a9da105.tar.gz
rt.equinox.p2-38975efbe1ed2b17493745b9971058261a9da105.tar.xz
rt.equinox.p2-38975efbe1ed2b17493745b9971058261a9da105.zip
view by category when no dialog setting present
Diffstat (limited to 'examples')
-rw-r--r--examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java
index f307bb8d7..925bb63d0 100644
--- a/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java
+++ b/examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java
@@ -10,12 +10,12 @@
*******************************************************************************/
package org.eclipse.equinox.p2.examples.rcp.cloud.p2;
+import org.eclipse.equinox.internal.provisional.p2.ui.policy.IUViewQueryContext;
import org.eclipse.equinox.internal.provisional.p2.ui.policy.Policy;
/**
- * CloudPolicy defines the RCP Cloud Example policies for the
- * p2 UI. The policy is declared as an OSGi service in
- * the policy_component.xml file.
+ * CloudPolicy defines the RCP Cloud Example policies for the p2 UI. The policy
+ * is declared as an OSGi service in the policy_component.xml file.
*
* @since 3.5
*/
@@ -23,5 +23,10 @@ public class CloudPolicy extends Policy {
public CloudPolicy() {
// XXX User has no access to manipulate repositories
setRepositoryManipulator(null);
-}
+
+ // XXX Default view is by category
+ IUViewQueryContext queryContext = new IUViewQueryContext(
+ IUViewQueryContext.AVAILABLE_VIEW_BY_CATEGORY);
+ setQueryContext(queryContext);
+ }
}

Back to the top