Project: Eclipse_Platform_UI
Bug 331662 [Compatibility] Menu ordering is off in 'Variables' view's view menu
Reported: 2010-12-02 08:16:04 | Status: verified fixed

The view menu has 'Java' then 'Layout' when it should be 'Layout' then 'Java'. It seems like we need to turn the view menu's contribution items into opaque model elements, is this correct, Paul? Trace of the 'Java' menu addition code as follows. Thread [main] (Suspended) MenuManagerRenderer.addToManager(MenuManager, MMenuElement, IContributionItem) line: 601 MenuManagerRenderer.processMenu(MenuManager, MMenu) line: 619 MenuManagerRenderer.modelProcessSwitch(MenuManager, MMenuElement) line: 658 MenuManagerRenderer.processContents(MElementContainer<MUIElement>) line: 583 PartRenderingEngine.createGui(MUIElement, Object, IEclipseContext) line: 508 RenderedToolBarRenderer.showMenu(ToolItem) line: 245 RenderedToolBarRenderer$2.widgetSelected(SelectionEvent) line: 222 TypedListener.handleEvent(Event) line: 234 EventTable.sendEvent(Event) line: 84 ToolItem(Widget).sendEvent(Event) line: 1053

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/CompatibilityView.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/MenuPersistence.java