public class Waiter extends Task.Modal
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>| Constructor and Description |
|---|
Waiter(Project project,
java.lang.Runnable runnable,
java.lang.String title,
boolean cancellable) |
| Modifier and Type | Method and Description |
|---|---|
void |
done() |
void |
onCancel()
This callback will be invoked on AWT dispatch thread.
|
void |
onSuccess()
This callback will be invoked on AWT dispatch thread.
|
void |
run(ProgressIndicator indicator) |
isModalasBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onError, onFinished, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbackspublic Waiter(Project project, java.lang.Runnable runnable, java.lang.String title, boolean cancellable)
public void run(ProgressIndicator indicator)
public void onCancel()
TaskProcessCanceledException or if its ProgressIndicator was canceled.public void onSuccess()
Taskpublic void done()