Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2015-01-12 11:13:15 +0000
committerPaul Webster2015-01-14 17:35:45 +0000
commitb3eab327711f465853b9e82678f362557572cfdf (patch)
tree2ffc91fc83727e78b0664ac86f7782f5ae97dd43
parent742528e5214c74481a11e31003c522faaeba63f7 (diff)
downloadeclipse.platform.ui-b3eab327711f465853b9e82678f362557572cfdf.tar.gz
eclipse.platform.ui-b3eab327711f465853b9e82678f362557572cfdf.tar.xz
eclipse.platform.ui-b3eab327711f465853b9e82678f362557572cfdf.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 a920ffbca3a..950276eebaa 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
@@ -500,7 +500,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