Bug 32267

Summary: TypeHierarchy. Does not set progress monitor to done when cancelled
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2003-02-19 13:21:47 EST
20030219

The doc of IProgressMonitor.done() says that this method has to be called when
the task is finished or cancel has been pressed.

I added a progress monitor to the type hierarchy which shows up in the workbench
window footer. Everything works fine except that when I cancel, the progress
monitor stays in the window an continues to show the 'unlimited' progress.

For a temporary solution I added a monitor.done in my caller code to make the
monitor to go away.
Comment 1 Jerome Lanneluc CLA 2003-02-20 09:23:30 EST
Added finally block in TypeHierarchy.refresh(...) to ensure done() is always 
called.
Comment 2 David Audel CLA 2003-02-25 07:20:40 EST
Verified.