public final class CompilerTask extends Task.Backgroundable
Modifier and Type | Class and Description |
---|---|
static class |
CompilerTask.IDObject |
Task.Backgroundable, Task.ConditionalModal, Task.Modal, Task.NotificationInfo, Task.WithResult<T,E extends java.lang.Exception>
myBackgroundOption
ALWAYS_BACKGROUND, DEAF
Constructor and Description |
---|
CompilerTask(Project project,
java.lang.String contentName,
boolean headlessMode,
boolean forceAsync,
boolean waitForPreviousSession,
boolean compilationStartedAutomatically) |
CompilerTask(Project project,
java.lang.String contentName,
boolean headlessMode,
boolean forceAsync,
boolean waitForPreviousSession,
boolean compilationStartedAutomatically,
boolean modal) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(CompilerMessage message) |
void |
cancel() |
java.lang.Object |
getContentId() |
ProgressIndicator |
getIndicator() |
Task.NotificationInfo |
getNotificationInfo() |
java.lang.Object |
getSessionId() |
static TextRange |
getTextRange(CompilerMessage message) |
java.awt.Window |
getWindow() |
boolean |
isConditionalModal() |
boolean |
isHeadless() |
void |
registerCloseAction(java.lang.Runnable onClose) |
void |
run(ProgressIndicator indicator) |
void |
run(java.lang.Runnable compileWork,
java.lang.Runnable restartWork,
ProgressIndicator progressIndicator) |
void |
setSessionId(java.lang.Object sessionId) |
boolean |
shouldStartInBackground() |
void |
showCompilerContent() |
static boolean |
showCompilerContent(Project project,
java.lang.Object contentId) |
void |
start(java.lang.Runnable compileWork,
java.lang.Runnable restartWork) |
static int |
translateCategory(CompilerMessageCategory category) |
isModal, processSentToBackground
asBackgroundable, asModal, getCancelText, getCancelTooltipText, getProject, getTitle, isCancellable, notifyFinished, onCancel, onError, onFinished, onSuccess, onThrowable, queue, setCancelText, setCancelTooltipText, setTitle, whereToRunCallbacks
public CompilerTask(Project project, java.lang.String contentName, boolean headlessMode, boolean forceAsync, boolean waitForPreviousSession, boolean compilationStartedAutomatically)
public CompilerTask(Project project, java.lang.String contentName, boolean headlessMode, boolean forceAsync, boolean waitForPreviousSession, boolean compilationStartedAutomatically, boolean modal)
public java.lang.Object getSessionId()
public void setSessionId(java.lang.Object sessionId)
public java.lang.Object getContentId()
public void registerCloseAction(java.lang.Runnable onClose)
public boolean shouldStartInBackground()
shouldStartInBackground
in interface PerformInBackgroundOption
shouldStartInBackground
in class Task.Backgroundable
public boolean isConditionalModal()
isConditionalModal
in class Task.Backgroundable
public ProgressIndicator getIndicator()
public Task.NotificationInfo getNotificationInfo()
getNotificationInfo
in class Task
public void run(ProgressIndicator indicator)
public void cancel()
public void addMessage(CompilerMessage message)
public static int translateCategory(CompilerMessageCategory category)
public void start(java.lang.Runnable compileWork, java.lang.Runnable restartWork)
public void run(java.lang.Runnable compileWork, java.lang.Runnable restartWork, ProgressIndicator progressIndicator)
public void showCompilerContent()
public static boolean showCompilerContent(Project project, java.lang.Object contentId)
public java.awt.Window getWindow()
public boolean isHeadless()
isHeadless
in class Task
public static TextRange getTextRange(CompilerMessage message)