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

Summary: ProgressHandle.switchToIndeterminate could be called automatically
Product: platform Reporter: Tim Lebedkov <lebedkov>
Component: ProgressAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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)