Wednesday, July 1, 2009

If you dont know the amount of work involved you need an indeterminate progress bar.

If using ProgressMonitorDialog, in the run method of IRunnableWithProgress, instead of specifying an integer indicating the total as an argument do this:


public void run(IProgressMonitor monitor) throws InvocationTargetException,InterruptedException {
monitor.beginTask("Task name",IProgressMonitor.UNKNOWN);

0 comments:

Post a Comment