Bug 272333

Summary: [type hierarchy] Don't expand to show unnamed inner classes in Hierarchy View
Product: [Eclipse Project] JDT Reporter: Carolyn MacLeod <carolynmacleod4>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.