diff options
Diffstat (limited to 'examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java')
-rw-r--r-- | examples/org.eclipse.equinox.p2.examples.rcp.cloud/src/org/eclipse/equinox/p2/examples/rcp/cloud/p2/CloudPolicy.java | 9 |
1 files changed, 8 insertions, 1 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 d2df4a112..789c8d676 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009 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 @@ -15,6 +15,7 @@ import org.eclipse.equinox.p2.examples.rcp.cloud.Activator; import org.eclipse.equinox.p2.query.QueryUtil; import org.eclipse.equinox.p2.ui.Policy; import org.eclipse.jface.preference.IPreferenceStore; +import org.eclipse.swt.graphics.Point; /** * CloudPolicy defines the RCP Cloud Example policies for the p2 UI. The policy @@ -35,6 +36,12 @@ public class CloudPolicy extends Policy { .getBoolean(PreferenceConstants.AVAILABLE_GROUP_BY_CATEGORY)); setShowDrilldownRequirements(prefs .getBoolean(PreferenceConstants.SHOW_DRILLDOWN_REQUIREMENTS)); + setFilterOnEnv(prefs.getBoolean(PreferenceConstants.FILTER_ON_ENV)); + setUpdateWizardStyle(prefs.getInt(PreferenceConstants.UPDATE_WIZARD_STYLE)); + int preferredWidth = prefs.getInt(PreferenceConstants.UPDATE_DETAILS_WIDTH); + int preferredHeight = prefs.getInt(PreferenceConstants.UPDATE_DETAILS_HEIGHT); + setUpdateDetailsPreferredSize(new Point(preferredWidth, preferredHeight)); + if (prefs.getBoolean(PreferenceConstants.AVAILABLE_SHOW_ALL_BUNDLES)) setVisibleAvailableIUQuery(QueryUtil.ALL_UNITS); else |