This API allows to visualize tracking for progress of long lasting tasks.
The usual usecase goes like this:
ProgressHandle handle = ProgressHandleFactory.createHandle("My custom task");
...
// we have 100 workunits
// at this point the task appears in status bar.
handle.start(100);
...
handle.progress(10);
...
handle.progress(50);
...
// at this point the task is finished and removed from status bar
handle.finish();
http://bits.netbeans.org/dev/javadoc/org-netbeans-api-progress/org/netbeans/api/progress/package-summary.html

No comments:
Post a Comment