Bug 32267 - TypeHierarchy. Does not set progress monitor to done when cancelled
Summary: TypeHierarchy. Does not set progress monitor to done when cancelled
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.1 RC1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-19 13:21 EST by Martin Aeschlimann CLA
Modified: 2003-02-25 07:20 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 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.