Bug 7313

Summary: Hierarchy always expands all
Product: [Eclipse Project] JDT Reporter: Nick Edgar <n.a.edgar>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: erich_gamma
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Nick Edgar CLA 2002-01-07 12:09:42 EST
Build 20011219

When I open the hierarchy on a class or interface which has many subtypes, it 
takes a long time to open, and expands the whole hierarchy.
The hierarchy expansion is pretty flashy, and causes visual clutter.

I would prefer it to only expand one level of subtypes.
If this could speed up the time to open, that would be even better.
Comment 1 Erich Gamma CLA 2002-01-08 08:11:42 EST
When opening a type in the type hierarchy it supertypes and its children should 
be expanded only. This will result in some speed-up since less items are 
created, but internally the full type hierarchy is computed at once.

The flash is due to selecting and revealing a class once the hierarchy is 
opened. We should investigate whether bracketing the refresh setRedraw
(true/false) would help.
Comment 2 Erich Gamma CLA 2002-01-09 05:10:52 EST
A good test case is to open the hierarchy on Object, relax and watch the type 
hierarchy work and scroll for almost a minute...
Comment 3 Martin Aeschlimann CLA 2002-01-11 11:11:01 EST
implemented the following strategy > 20109
supertypes-view: expand all
suptypes-view: expandToLevel(2) in normal mode, level(3) in filter mode
hierarchy-view:
  when focus on type: height of hierarchy from Object to focus type + 2
                      in filter mode: heigth + 3
  when focus on package / root or project: 2
                      in filter mode: 3