Bug 272333 - [type hierarchy] Don't expand to show unnamed inner classes in Hierarchy View
Summary: [type hierarchy] Don't expand to show unnamed inner classes in Hierarchy View
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-15 11:26 EDT by Carolyn MacLeod CLA
Modified: 2009-05-05 06:46 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 Carolyn MacLeod CLA 2009-04-15 11:26:06 EDT
3.5 M6 or earlier

Open a hierarchy view on any project whose classes contain many unnamed inner classes (for example, lots of Listeners, Adapters, and Runnables). The class (and interface) hierarchy tree will have expanded tree nodes with many little unnamed classes in them, for example:
 AccessibleAdapter
   new AccessibleAdapter() {...}
   new AccessibleAdapter() {...}
   new AccessibleAdapter() {...}
   new AccessibleAdapter() {...}
   new AccessibleAdapter() {...}
   new AccessibleAdapter() {...}
   etc.

These take up a lot of the visual space in the class hierarchy tree, and every time I open a hierarchy view on a project or package I have to go and collapse all of these "noise" nodes before I can really see the tree.

Would it be possible to keep these tree nodes collapsed by default?
In other words, if a hierarchy tree node representing a class or interface contains only unnamed inner classes for children, then do not expand the node.
Comment 1 Carolyn MacLeod CLA 2009-04-15 11:37:14 EDT
I guess this is sort of a dup of bug 40630, but not exactly.
I am not requesting filters here - only a cleaner initial state of the hierarchy tree.