public class CommandLineUiCallback extends java.lang.Object implements IGuiCallback
IGuiCallback.FormItem
CANCEL_OPTION, NO_OPTION, OK_CANCEL_OPTION, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION
Constructor and Description |
---|
CommandLineUiCallback() |
Modifier and Type | Method and Description |
---|---|
void |
displayNonmodelMessage(java.lang.String title,
java.lang.String message) |
java.util.concurrent.ExecutorService |
getBugUpdateExecutor()
Use this executor to queue bug collection updates without interfering
with the GUI.
|
java.io.InputStream |
getProgressMonitorInputStream(java.io.InputStream in,
int length,
java.lang.String msg) |
void |
invokeInGUIThread(java.lang.Runnable r) |
boolean |
isHeadless()
If true, do not open windows or browsers
|
void |
registerCloud(Project project,
BugCollection collection,
Cloud cloud)
Called as soon as the cloud object is created, before it is initialized.
|
void |
setErrorMessage(java.lang.String errorMsg) |
int |
showConfirmDialog(java.lang.String message,
java.lang.String title,
java.lang.String ok,
java.lang.String cancel) |
boolean |
showDocument(java.net.URL u) |
java.util.List<java.lang.String> |
showForm(java.lang.String message,
java.lang.String title,
java.util.List<IGuiCallback.FormItem> labels) |
void |
showMessageDialog(java.lang.String message) |
void |
showMessageDialogAndWait(java.lang.String message) |
java.lang.String |
showQuestionDialog(java.lang.String message,
java.lang.String title,
java.lang.String defaultValue) |
void |
unregisterCloud(Project project,
BugCollection collection,
Cloud cloud) |
public void showMessageDialogAndWait(java.lang.String message) throws java.lang.InterruptedException
showMessageDialogAndWait
in interface IGuiCallback
java.lang.InterruptedException
public void showMessageDialog(java.lang.String message)
showMessageDialog
in interface IGuiCallback
public int showConfirmDialog(java.lang.String message, java.lang.String title, java.lang.String ok, java.lang.String cancel)
showConfirmDialog
in interface IGuiCallback
public java.io.InputStream getProgressMonitorInputStream(java.io.InputStream in, int length, java.lang.String msg)
getProgressMonitorInputStream
in interface IGuiCallback
public void setErrorMessage(java.lang.String errorMsg)
setErrorMessage
in interface IGuiCallback
public void displayNonmodelMessage(java.lang.String title, java.lang.String message)
displayNonmodelMessage
in interface IGuiCallback
public java.lang.String showQuestionDialog(java.lang.String message, java.lang.String title, java.lang.String defaultValue)
showQuestionDialog
in interface IGuiCallback
public java.util.List<java.lang.String> showForm(java.lang.String message, java.lang.String title, java.util.List<IGuiCallback.FormItem> labels)
showForm
in interface IGuiCallback
public boolean showDocument(java.net.URL u)
showDocument
in interface IGuiCallback
public void registerCloud(Project project, BugCollection collection, Cloud cloud)
IGuiCallback
registerCloud
in interface IGuiCallback
public java.util.concurrent.ExecutorService getBugUpdateExecutor()
IGuiCallback
getBugUpdateExecutor
in interface IGuiCallback
public boolean isHeadless()
IGuiCallback
isHeadless
in interface IGuiCallback
public void unregisterCloud(Project project, BugCollection collection, Cloud cloud)
unregisterCloud
in interface IGuiCallback
public void invokeInGUIThread(java.lang.Runnable r)
invokeInGUIThread
in interface IGuiCallback
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.