Community
Participate
Working Groups
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
Note: I tested with full source workspace.
Progress is reported by JDT/COre
Dani, is this the only annoying scenario ?
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.
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.
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.
Verified.