aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-03-28 14:28:01 (EDT)
committerOleg Besedin2012-03-28 14:28:01 (EDT)
commit84aa97866e00bdf58333d758abb10d0ec0b8ef29 (patch)
treec5af86dadbae2ee5d576b80c274f836a36613cf9
parentf22fcfb30f9b55c7ec0b0acbefd2878477008198 (diff)
downloadeclipse.platform.ui-84aa97866e00bdf58333d758abb10d0ec0b8ef29.zip
eclipse.platform.ui-84aa97866e00bdf58333d758abb10d0ec0b8ef29.tar.gz
eclipse.platform.ui-84aa97866e00bdf58333d758abb10d0ec0b8ef29.tar.bz2
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java
index 59cca83..2d10eeb 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java
@@ -623,7 +623,13 @@ UIEvents.ElementContainer.TOPIC_CHILDREN, childrenHandler);
public void propertyChange(PropertyChangeEvent propertyChangeEvent) {
if (IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR
.equals(propertyChangeEvent.getProperty())) {
- changeShowText((Boolean) propertyChangeEvent.getNewValue());
+ Object newValue = propertyChangeEvent.getNewValue();
+ boolean showText = true; // default
+ if (newValue instanceof Boolean)
+ showText = ((Boolean) newValue).booleanValue();
+ else if ("false".equals(newValue)) //$NON-NLS-1$
+ showText = false;
+ changeShowText(showText);
}
}
};