Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2015-01-12 11:13:15 +0000
committerWojciech Sudol2015-01-15 13:32:31 +0000
commit256ceb775f6f237da077cb70db66344e91eae042 (patch)
tree67998fa222f491add6e00558e94c4ebef521996a
parentac9674a93b72adc3f9c7b22dd4c0a33e8bb2ec15 (diff)
downloadeclipse.platform.ui-256ceb775f6f237da077cb70db66344e91eae042.tar.gz
eclipse.platform.ui-256ceb775f6f237da077cb70db66344e91eae042.tar.xz
eclipse.platform.ui-256ceb775f6f237da077cb70db66344e91eae042.zip
Bug 432686 - [Trim] show toolbar does not take effect if workspace is
started with hidden toolbar Change-Id: I67dae8ad595fb64afd8bd0bc2911e9fcbedaa03d
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
index f13f28b4b8d..842346d5d11 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CoolBarToTrimManager.java
@@ -525,7 +525,14 @@ public class CoolBarToTrimManager extends ContributionManager implements ICoolBa
}
// and now add it to the model, start the rendering
if (!trimBarsAdded) {
+ boolean hidden = !topTrim.isVisible();
+ if (hidden) {
+ topTrim.setVisible(true);
+ }
topTrim.setToBeRendered(true);
+ if (hidden) {
+ topTrim.setVisible(false);
+ }
trimBarsAdded = true;
}
}

Back to the top