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 |
myBackgroundOptionALWAYS_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, shouldStartInBackgroundasBackgroundable, asModal, getCancelText, getCancelTooltipText, getNotificationInfo, getProject, getTitle, isCancellable, isHeadless, notifyFinished, onError, onFinished, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbackspublic SearchForTestsTask(Project project, java.net.ServerSocket socket)
protected abstract void search()
throws ExecutionException
ExecutionExceptionprotected abstract void onFound()
throws ExecutionException
ExecutionExceptionpublic 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
ExecutionExceptionpublic void onCancel()
TaskProcessCanceledException or if its ProgressIndicator was canceled.public void onSuccess()
Taskpublic void finish()