diff options
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java')
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | 12 |
1 files changed, 7 insertions, 5 deletions
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 656c7f66c17..c3c982f8932 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 @@ -10,6 +10,7 @@ * Christian Janz - <christian.janz@gmail.com> Fix for Bug 385592 * Marc-Andre Laperle (Ericsson) - Fix for Bug 413590 * Lars Vogel <Lars.Vogel@gmail.com> - Bug 431340, 431348, 426535, 433234 + * Lars Vogel <Lars.Vogel@gmail.com> - Bug 431868 *******************************************************************************/ package org.eclipse.ui.internal; @@ -62,9 +63,9 @@ import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainer; import org.eclipse.e4.ui.model.application.ui.basic.MPartSashContainerElement; import org.eclipse.e4.ui.model.application.ui.basic.MPartStack; import org.eclipse.e4.ui.model.application.ui.basic.MStackElement; +import org.eclipse.e4.ui.model.application.ui.basic.MTrimElement; import org.eclipse.e4.ui.model.application.ui.basic.MWindow; import org.eclipse.e4.ui.model.application.ui.basic.MWindowElement; -import org.eclipse.e4.ui.model.application.ui.menu.MToolBar; import org.eclipse.e4.ui.workbench.IPresentationEngine; import org.eclipse.e4.ui.workbench.UIEvents; import org.eclipse.e4.ui.workbench.modeling.EModelService; @@ -3375,10 +3376,11 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements tags.clear(); tags.addAll(dummyPerspective.getTags()); - // remove HIDDEN_EXPLICITLY tag from toolbar - List<MToolBar> toolBars = modelService.findElements(window, null, MToolBar.class, null); - for (MToolBar mToolBar : toolBars) { - mToolBar.getTags().remove(IPresentationEngine.HIDDEN_EXPLICITLY); + // remove HIDDEN_EXPLICITLY tag from trim elements + List<MTrimElement> trimElements = modelService.findElements(window, null, + MTrimElement.class, null); + for (MTrimElement mTrimElement : trimElements) { + mTrimElement.getTags().remove(IPresentationEngine.HIDDEN_EXPLICITLY); } partService.requestActivation(); |