Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326654

Summary: [outline] The Outline view menu ordering is wrong
Product: [Tools] CDT Reporter: Anton Leherbauer <aleherb+eclipse>
Component: cdt-editorAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: normal    
Priority: P3 CC: malaperle
Version: 7.0   
Target Milestone: 7.0.2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 326748    
Bug Blocks:    

Description Anton Leherbauer CLA 2010-09-30 06:25:11 EDT
The "Group *" menu items are no longer grouped together.
Comment 1 Anton Leherbauer CLA 2010-10-01 04:47:35 EDT
It appears that SubMenuManager.appendToGroup() behaves unexpectedly in the Outline view context.  The reason is that all contributions of all outline view pages are collected in one list of the parent contribution manager and each SubMenuManager just tracks which items it has added.  I.e. the list can contain duplicate separator items from different SubMenuManagers.  appendToGroup() does not consider the contributing SubMenuManager when searching for the separator so that the first matching separator from any SubMenuManager is used to insert the new item.

That's why the order is only correct for the first editor.
Comment 2 Anton Leherbauer CLA 2010-10-15 02:40:07 EDT
I committed a workaround to HEAD and cdt_7_0.