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

Bug 322058

Summary: [cdt][outline] All methods are hidden when Group Methods is checked
Product: z_Archived Reporter: Marc-André Laperle <malaperle>
Component: MylynAssignee: Shawn Minto <shawn.minto>
Status: RESOLVED FIXED QA Contact: Shawn Minto <shawn.minto>
Severity: normal    
Priority: P3 CC: shawn.minto
Version: 3.4   
Target Milestone: 3.4.2   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2010-08-07 17:13:15 EDT
Steps to reproduce:
1. Activate a task, focus the Outline view
2. Open a file containing a class with methods. Click on a couple of methods to see them in the outline
3. In the Outline view top right menu, check the option "Group Methods". The methods are hidden.
Comment 1 Shawn Minto CLA 2010-09-02 13:08:31 EDT
I found the issue with this.  When "Group Methods" is enabled, the Outline view contains a CElementGrouping element which is not part of the task context.  To fix this, I have added some logic to canFilter in the bridge that is similar to how working sets are displayed.  This means that the group will only show if there is at least 1 element under it that is in the task context.  I have committed the changes to HEAD and will backport them to the 3.4 branch as well.
Comment 2 Shawn Minto CLA 2010-09-02 13:09:41 EDT
backported to the 3.4.x branch.
Comment 3 Marc-André Laperle CLA 2010-09-02 13:11:55 EDT
Thanks!