Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322058 - [cdt][outline] All methods are hidden when Group Methods is checked
Summary: [cdt][outline] All methods are hidden when Group Methods is checked
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.4.2   Edit
Assignee: Shawn Minto CLA
QA Contact: Shawn Minto CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-07 17:13 EDT by Marc-André Laperle CLA
Modified: 2010-09-02 13:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!