This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 164849 - ProgressHandle.switchToIndeterminate could be called automatically
Summary: ProgressHandle.switchToIndeterminate could be called automatically
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Progress (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-11 10:59 UTC by Tim Lebedkov
Modified: 2011-08-04 15:17 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Lebedkov 2009-05-11 10:59:43 UTC
A simple use case for a ProgressHandle: deleting files
If we are deleting more than 1 file, switchToDeterminate(numberOfFiles) shows a progress bar, which is OK.
If there is only 1 file, the progress bar does not move and it looks like the operation failed. 
Another problem arises if 10 files should be deleted and the deletion of the file 6 takes too long (5 minutes). The
progress bar does not move for 5 minutes. 

In seems more useful to switch to the indeterminate state automatically in following cases and deprecate manual switching:
- number of steps is 1
- nothing has changed in the last 30 seconds (progress, title, hint)