Community
Participate
Working Groups
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
The 'Debug' view is also off. It goes 'View Management...', 'Java', then 'Layout', on 3.x it goes 'Layout', 'View Management...', then 'Java'.
Created attachment 184350 [details] CompatibilityView patch v1 Implements the proposed suggestion in comment 0.
Created attachment 196021 [details] Menu contributions patch v1 So there are two bugs here. The first one is the one described in comment 0. The menu goes 'Java' first then 'Layout' when it should be 'Layout' first then 'Java'. The second problem is that the 'Java' submenu's order is inverted. 'Show Constants' should be the first item there but we have 'Java Preferences...' as the first item in 4.x and 'Show Constants' comes up at the bottom of the list.
(In reply to comment #3) > Created attachment 196021 [details] > Menu contributions patch v1 Fix released to R4_development. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?h=R4_development&id=9954a5ef4e59a5d39a1a491f7272446ce76c590a
Verified with I20110912-0200 on Windows XP.
*** Bug 330820 has been marked as a duplicate of this bug. ***