T - The return type of the task. Use Void if it does not
return a value.public interface ProgressTask<T>
| Modifier and Type | Method and Description |
|---|---|
T |
execute(ProgressReceiver progressReceiver)
Perform the task, optionally reporting progress to a progress receiver
and optionally returning a value.
|
String |
getName()
Get the short descriptive name of the task.
|
String getName()
T execute(ProgressReceiver progressReceiver) throws ProgressReceiver.OperationCancelled
progressReceiver - The progress receiver to which to report
progress. May be null.null if it does not
return a result.ProgressReceiver.OperationCancelled - If the user cancelled the
operation, as indicated by the progress receiver throwing an
OperationCancelled exception.