public abstract class VcsBackgroundTask<T> extends Task.ConditionalModal
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>myBackgroundOptionALWAYS_BACKGROUND, DEAF| Constructor and Description |
|---|
VcsBackgroundTask(Project project,
java.lang.String title,
PerformInBackgroundOption backgroundOption,
java.util.Collection<? extends T> itemsToProcess) |
VcsBackgroundTask(Project project,
java.lang.String title,
PerformInBackgroundOption backgroundOption,
java.util.Collection<? extends T> itemsToProcess,
boolean canBeCanceled) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
executedOk() |
void |
onSuccess()
This callback will be invoked on AWT dispatch thread.
|
protected abstract void |
process(T item) |
void |
run(ProgressIndicator indicator) |
isConditionalModalisModal, processSentToBackground, shouldStartInBackgroundasBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onCancel, onError, onFinished, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbackspublic VcsBackgroundTask(Project project, java.lang.String title, PerformInBackgroundOption backgroundOption, java.util.Collection<? extends T> itemsToProcess, boolean canBeCanceled)
public VcsBackgroundTask(Project project, java.lang.String title, PerformInBackgroundOption backgroundOption, java.util.Collection<? extends T> itemsToProcess)
public void run(ProgressIndicator indicator)
protected boolean executedOk()
public void onSuccess()
Taskprotected abstract void process(T item) throws VcsException
VcsException