public abstract class SearchForTestsTask extends Task.Backgroundable
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
Modifier and Type | Field and Description |
---|---|
protected java.net.Socket |
mySocket |
myBackgroundOption
ALWAYS_BACKGROUND, DEAF
Constructor and Description |
---|
SearchForTestsTask(Project project,
java.net.ServerSocket socket) |
Modifier and Type | Method and Description |
---|---|
void |
attachTaskToProcess(OSProcessHandler handler) |
void |
ensureFinished() |
void |
finish() |
protected void |
logCantRunException(ExecutionException e) |
void |
onCancel()
This callback will be invoked on AWT dispatch thread.
|
protected abstract void |
onFound() |
void |
onSuccess()
This callback will be invoked on AWT dispatch thread.
|
protected boolean |
requiresSmartMode() |
void |
run(ProgressIndicator indicator) |
protected abstract void |
search() |
void |
startSearch() |
isConditionalModal, isModal, processSentToBackground, shouldStartInBackground
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onError, onFinished, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
public SearchForTestsTask(Project project, java.net.ServerSocket socket)
protected abstract void search() throws ExecutionException
ExecutionException
protected abstract void onFound() throws ExecutionException
ExecutionException
public void ensureFinished()
public void startSearch()
public void attachTaskToProcess(OSProcessHandler handler)
protected boolean requiresSmartMode()
public void run(ProgressIndicator indicator)
protected void logCantRunException(ExecutionException e) throws ExecutionException
ExecutionException
public void onCancel()
Task
ProcessCanceledException
or if its ProgressIndicator
was canceled.public void onSuccess()
Task
public void finish()