public static interface PossiblyLengthyTask.MonitoredRunnable extends Runnable
Specifying this kind of Runnable allows to display a dialog box containing a normal progress bar instead of an indeterminate one.
Modifier and Type | Method and Description |
---|---|
String |
getMessageLog()
Return the name of the log where to log the messages reported
to the
ProgressMonitor during the execution of this task. |
void |
run(ProgressMonitor progressMonitor)
Execute this task.
|
void run(ProgressMonitor progressMonitor) throws Exception
progressMonitor
- allows to follow the progression of the task
and also to cancel it.Exception
- if for any reason, this task
cannot be completed.String getMessageLog()
ProgressMonitor
during the execution of this task.
Implementation may return null
if such messages
are not to be logged.PossiblyLengthyTask.execute()