diff options
| author | Wojciech Sudol | 2015-01-12 11:13:15 +0000 |
|---|---|---|
| committer | Paul Webster | 2015-01-14 17:35:45 +0000 |
| commit | b3eab327711f465853b9e82678f362557572cfdf (patch) | |
| tree | 2ffc91fc83727e78b0664ac86f7782f5ae97dd43 | |
| parent | 742528e5214c74481a11e31003c522faaeba63f7 (diff) | |
| download | eclipse.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.java | 7 |
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; } } |
