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

Bug 138677

Summary: [navigation] Would like a collapse/expand of local types in Outline View
Product: [Eclipse Project] JDT Reporter: Chris Ingham <chris.ingham>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: chris.ingham
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Chris Ingham CLA 2006-04-26 13:19:52 EDT
When the Outline View is synched with the editor, the Outline view's tree expands inner ("local") classes as you're browing through the code.  It'd be nice to be able to quickly collapse these in the Outline View to just see the outer class' methods.  I know there's a "Hide Local Types" button, but I hate forgetting to turn it back off and then not seeing them at all.

Thanks!
Comment 1 Dani Megert CLA 2006-04-27 06:41:58 EDT
Simply go to the Outline view and then press ARROW_LEFT to move up the hierarchy. You can then collapse it with NUMPAD_-
Comment 2 Chris Ingham CLA 2006-04-27 10:55:53 EDT
(In reply to comment #1)
> Simply go to the Outline view and then press ARROW_LEFT to move up the
> hierarchy. You can then collapse it with NUMPAD_-

I'm aware of all that.  And NUMPAD_* expands everything.  But AFAIK there's no easy way to collapse everything.  And that's why I submitted an enhancement request.

I contribute to a very large Java framework containing Classes with a dozen or more inner / anonymous classes.  NUMPAD_- only collapses a single subtree, and if you have multiple subtrees (local classes in this case), there's no convenient way to collapse them all, which is why expand all and collapse all buttons were invented.  Otherwise why not use the same logic for the Navigation and Package Views?
Comment 3 Dani Megert CLA 2006-04-27 12:30:23 EDT

*** This bug has been marked as a duplicate of 41092 ***