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) |
isModal
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onError, onFinished, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
public Waiter(Project project, java.lang.Runnable runnable, java.lang.String title, boolean cancellable)
public void run(ProgressIndicator indicator)
public void onCancel()
Task
ProcessCanceledException
or if its ProgressIndicator
was canceled.public void onSuccess()
Task
public void done()