public abstract class VcsBackgroundTask<T> extends Task.ConditionalModal
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
myBackgroundOption
ALWAYS_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) |
isConditionalModal
isModal, processSentToBackground, shouldStartInBackground
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onCancel, onError, onFinished, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
public 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()
Task
protected abstract void process(T item) throws VcsException
VcsException