Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/e4/ui/workbench/addons/perspectiveswitcher/PerspectiveSwitcher.java4
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java1
2 files changed, 4 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 59823bd5de4..5a97d8d8bac 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
@@ -196,7 +196,9 @@ public class PerspectiveSwitcher {
}
private void updateToolItem(ToolItem ti, String attName, Object newValue) {
- if (UIEvents.UILabel.LABEL.equals(attName)) {
+ boolean showText = PrefUtil.getAPIPreferenceStore().getBoolean(
+ IWorkbenchPreferenceConstants.SHOW_TEXT_ON_PERSPECTIVE_BAR);
+ if (showText && UIEvents.UILabel.LABEL.equals(attName)) {
String newName = (String) newValue;
ti.setText(newName);
} else if (UIEvents.UILabel.TOOLTIP.equals(attName)) {
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index efc71cca4b3..230480ab323 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -3172,6 +3172,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
sortedPerspectives.add(perspective);
visiblePerspective.setLabel(perspective.getLabel());
+ visiblePerspective.setTooltip(perspective.getLabel());
visiblePerspective.setElementId(perspective.getId());
modelService.cloneElement(visiblePerspective, application);
if (perspective instanceof PerspectiveDescriptor) {

Back to the top