public abstract static class Task.WithResult<T,E extends java.lang.Exception> extends Task.Modal
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>| Constructor and Description |
|---|
WithResult(Project project,
java.lang.String title,
boolean canBeCancelled) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
compute(ProgressIndicator indicator) |
T |
getResult() |
void |
run(ProgressIndicator indicator) |
isModalasBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onCancel, onError, onFinished, onSuccess, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbackspublic WithResult(Project project, java.lang.String title, boolean canBeCancelled)
public final void run(ProgressIndicator indicator)
protected abstract T compute(ProgressIndicator indicator) throws E extends java.lang.Exception
E extends java.lang.Exception