Bug 32919 - Hierarchy views progress bar is useless
Summary: Hierarchy views progress bar is useless
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-25 06:07 EST by Dani Megert CLA
Modified: 2003-03-11 05:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.