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

Bug 364879

Summary: [Outline] Add Collapse All button
Product: [Tools] CDT Reporter: Marc-André Laperle <malaperle>
Component: cdt-editorAssignee: Marc-André Laperle <malaperle>
Status: RESOLVED FIXED QA Contact: Anton Leherbauer <aleherb+eclipse>
Severity: enhancement    
Priority: P3 CC: cdtdoug
Version: 8.0Flags: aleherb+eclipse: review+
Target Milestone: 8.1.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Add Collapse All button patch malaperle: iplog-

Description Marc-André Laperle CLA 2011-11-26 01:35:00 EST
In the Outline view, it would be nice to have a "Collapse All" button like in JDT.
Comment 1 Marc-André Laperle CLA 2011-12-21 19:15:31 EST
Created attachment 208714 [details]
Add Collapse All button patch

This patch adds the Collapse All button to the outline. Also, by handling org.eclipse.ui.handlers.CollapseAllHandler, the keybinding Ctrl+Shift+Numpad_Divide works.
Comment 2 Marc-André Laperle CLA 2011-12-21 19:17:20 EST
Anton, would you mind reviewing the small patch? Thanks!
Comment 3 Anton Leherbauer CLA 2011-12-22 03:45:30 EST
(In reply to comment #2)
> Anton, would you mind reviewing the small patch? Thanks!

Looks good. 
For an extra bonus, could you combine the two CollapseAllActions into one and put it into the org.eclipse.cdt.internal.ui.actions package (ideally moving messages as well)?
Thanks!
Comment 4 Marc-André Laperle CLA 2012-01-03 00:43:39 EST
(In reply to comment #3)
> (In reply to comment #2)
> > Anton, would you mind reviewing the small patch? Thanks!
> 
> Looks good. 
> For an extra bonus, could you combine the two CollapseAllActions into one and
> put it into the org.eclipse.cdt.internal.ui.actions package (ideally moving
> messages as well)?
> Thanks!

I combined the two actions and moved the messages. I also updated the user documentation a little bit. Thank you for the review and suggestions!
Comment 5 Anton Leherbauer CLA 2012-01-03 06:07:04 EST
Very nice!