public class SequentialModalProgressTask extends Task.Modal
SequentialTask
under modal progress.Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
Constructor and Description |
---|
SequentialModalProgressTask(Project project,
java.lang.String title) |
SequentialModalProgressTask(Project project,
java.lang.String title,
boolean canBeCancelled) |
Modifier and Type | Method and Description |
---|---|
void |
doRun(ProgressIndicator indicator) |
ProgressIndicator |
getIndicator() |
protected void |
prepare(SequentialTask task)
Executes preliminary jobs prior to the target sequential task processing (
SequentialTask.prepare() by default). |
void |
run(ProgressIndicator indicator) |
void |
setMinIterationTime(long minIterationTime) |
void |
setTask(SequentialTask task) |
isModal
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onCancel, onError, onFinished, onSuccess, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
public SequentialModalProgressTask(Project project, java.lang.String title)
public SequentialModalProgressTask(Project project, java.lang.String title, boolean canBeCancelled)
public void run(ProgressIndicator indicator)
public void doRun(ProgressIndicator indicator)
public void setMinIterationTime(long minIterationTime)
public void setTask(SequentialTask task)
public ProgressIndicator getIndicator()
protected void prepare(SequentialTask task)
SequentialTask.prepare()
by default).task
- task to be executed