diff options
| author | Wojciech Sudol | 2015-01-12 11:13:15 +0000 |
|---|---|---|
| committer | Wojciech Sudol | 2015-01-15 13:32:31 +0000 |
| commit | 256ceb775f6f237da077cb70db66344e91eae042 (patch) | |
| tree | 67998fa222f491add6e00558e94c4ebef521996a | |
| parent | ac9674a93b72adc3f9c7b22dd4c0a33e8bb2ec15 (diff) | |
| download | eclipse.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.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 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; } } |
