Index: manifest.mf =================================================================== RCS file: /cvs/core/progress/manifest.mf,v retrieving revision 1.3 diff -u -r1.3 manifest.mf --- manifest.mf 9 May 2005 12:22:05 -0000 1.3 +++ manifest.mf 9 Sep 2005 07:21:43 -0000 @@ -2,5 +2,5 @@ OpenIDE-Module: org.netbeans.api.progress/1 OpenIDE-Module-Localizing-Bundle: org/netbeans/progress/module/resources/Bundle.properties OpenIDE-Module-Layer: org/netbeans/progress/module/resources/layer.xml -OpenIDE-Module-Specification-Version: 1.0 +OpenIDE-Module-Specification-Version: 1.1 Index: api/doc/changes/apichanges.xml =================================================================== RCS file: /cvs/core/progress/api/doc/changes/apichanges.xml,v retrieving revision 1.3 diff -u -r1.3 apichanges.xml --- api/doc/changes/apichanges.xml 29 Jun 2005 07:18:43 -0000 1.3 +++ api/doc/changes/apichanges.xml 9 Sep 2005 07:21:43 -0000 @@ -78,6 +78,25 @@ + Adding setInitialDelay(int) method to ProgressHandle and AggregateProgressHandle + + + + +

+ The newly added methods allow to customize the amount of time that shall pass between the start of handle's progress + and it's appearance in the status bar. If the progress task finishes fast enough it won't appear in the UI at all. + The default value is around 0.5s.

+

+ For handles that are used in dialogs and elsewhere, this property has no effect and the handle's component is shown immediately. +

+
+ + + +
+ + Initial version released Index: src/org/netbeans/api/progress/ProgressHandle.java =================================================================== RCS file: /cvs/core/progress/src/org/netbeans/api/progress/ProgressHandle.java,v retrieving revision 1.1 diff -u -r1.1 ProgressHandle.java --- src/org/netbeans/api/progress/ProgressHandle.java 9 May 2005 12:22:08 -0000 1.1 +++ src/org/netbeans/api/progress/ProgressHandle.java 9 Sep 2005 07:21:43 -0000 @@ -125,6 +125,19 @@ internal.progress(message, workunit); } + + /** + * allows to set a custom initial delay for the progress task to appear in the + * status bar. This delay marks the time between starting of the progress handle + * and it's appearance in the status bar. If it finishes earlier, it's not shown at all. + * There is a default < 1s value for this. If you want to to appear earlier or later, + * call this method with the value you prefer before starting the handle. + *

Progress bars that are placed in custom dialogs do always appear right away without a delay. + * @param millis amount of miliseconds that shall pass before the progress appears in status bar. + */ + /*public*/ void setInitialDelay(int millis) { + internal.setInitialDelay(millis); + } /** * have the component in custom location, don't include in the status bar. Index: src/org/netbeans/api/progress/aggregate/AggregateProgressHandle.java =================================================================== RCS file: /cvs/core/progress/src/org/netbeans/api/progress/aggregate/AggregateProgressHandle.java,v retrieving revision 1.2 diff -u -r1.2 AggregateProgressHandle.java --- src/org/netbeans/api/progress/aggregate/AggregateProgressHandle.java 3 Jun 2005 13:36:35 -0000 1.2 +++ src/org/netbeans/api/progress/aggregate/AggregateProgressHandle.java 9 Sep 2005 07:21:43 -0000 @@ -80,6 +80,19 @@ } finished = true; handle.finish(); + } + + /** + * allows to set a custom initial delay for the progress task to appear in the + * status bar. This delay marks the time between starting of the progress handle + * and it's appearance in the status bar. If it finishes earlier, it's not shown at all. + * There is a default < 1s value for this. If you want to to appear earlier or later, + * call this method with the value you prefer before starting the handle. + *

Progress bars that are placed in custom dialogs do always appear right away without a delay. + * @param millis amount of miliseconds that shall pass before the progress appears in status bar. + */ + /*public*/ void setInitialDelay(int millis) { + //handle.setInitialDelay(millis); } /**