Bug 7313 - Hierarchy always expands all
Summary: Hierarchy always expands all
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-07 12:09 EST by Nick Edgar CLA
Modified: 2002-01-11 11:11 EST (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 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