Bug 32919

Summary: Hierarchy views progress bar is useless
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dani Megert CLA 2003-02-25 06:07:00 EST
Build 2.1 RC1

Open type hierarchy for Object.
Observe: the progress bar is at the end after a few seconds but I have to wait
for almost 2 minutes.

Either
- show more or less correct progress
- leave the progress bar at the beginning rather than at the end
- show the knight rider bar
Comment 1 Dani Megert CLA 2003-02-25 06:07:31 EST
Note: I tested with full source workspace.
Comment 2 Dirk Baeumer CLA 2003-02-25 12:05:27 EST
Progress is reported by JDT/COre 
Comment 3 Philipe Mulet CLA 2003-02-25 13:27:34 EST
Dani, is this the only annoying scenario ?
Comment 4 Philipe Mulet CLA 2003-02-26 03:39:48 EST
Hierarchy progress isn't deterministic. It is a function of how many iterations 
of subtypes we will find using search to get all potential subtypes. For 
Object, we get all subtypes at once, accounting for a quick move to 80%, where 
the remaining is spent while resolving supertype references.

On Throwable, most time is spent find potential subtypes, but not for Object 
scenario which would need to be special cased.
Comment 5 Dani Megert CLA 2003-02-26 03:48:16 EST
Other scenarios include (though not as bad):
IAction
IResource

Note:
1) I normally look at the progress bar when an action takes long. That's where
it should be correct (or at least more or less correct). I don't look at the
progress bar if the action takes 1 or 2 seconds.
2) Too me it looks as if the whole progress bar is filled by JDT Core. The
Hierarchy view could split the progress bar into 4/5 by JDT Core and the last
1/4 by the Hierarchy view. This would at least indicate that the operation
hasn't finished yet.
Comment 6 Jerome Lanneluc CLA 2003-02-26 06:24:34 EST
Added special case in progress reporting for Object. Also increased the max 
number of ticks from 500 to 800 so that computing deep hierarchies doesn't 
appear to be blocked at the end of the progress.
Comment 7 David Audel CLA 2003-03-11 05:51:38 EST
Verified.