protected abstract static class BaseContentCloseListener.WaitForProcessTask extends Task.Backgroundable
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
myBackgroundOption
ALWAYS_BACKGROUND, DEAF
Modifier | Constructor and Description |
---|---|
protected |
WaitForProcessTask(ProcessHandler processHandler,
java.lang.String processName,
boolean modal,
Project project) |
Modifier and Type | Method and Description |
---|---|
boolean |
isConditionalModal() |
abstract void |
onCancel()
This callback will be invoked on AWT dispatch thread.
|
void |
run(ProgressIndicator progressIndicator) |
boolean |
shouldStartInBackground() |
isModal, processSentToBackground
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onError, onFinished, onSuccess, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
protected WaitForProcessTask(ProcessHandler processHandler, java.lang.String processName, boolean modal, Project project)
public boolean isConditionalModal()
isConditionalModal
in class Task.Backgroundable
public boolean shouldStartInBackground()
shouldStartInBackground
in interface PerformInBackgroundOption
shouldStartInBackground
in class Task.Backgroundable
public void run(ProgressIndicator progressIndicator)
public abstract void onCancel()
Task
ProcessCanceledException
or if its ProgressIndicator
was canceled.