Package edu.umd.cs.findbugs
Class CommandLineUiCallback
java.lang.Object
edu.umd.cs.findbugs.CommandLineUiCallback
- All Implemented Interfaces:
IGuiCallback
Implementation of the UI callback for command line sessions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Nested classes/interfaces inherited from interface edu.umd.cs.findbugs.IGuiCallback
IGuiCallback.FormItem
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BufferedReader
private final CommandLineUiCallback.CurrentThreadExecutorService
Fields inherited from interface edu.umd.cs.findbugs.IGuiCallback
CANCEL_OPTION, NO_OPTION, OK_CANCEL_OPTION, YES_NO_CANCEL_OPTION, YES_NO_OPTION, YES_OPTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayNonmodelMessage
(String title, String message) Use this executor to queue bug collection updates without interfering with the GUI.getProgressMonitorInputStream
(InputStream in, int length, String msg) void
boolean
If true, do not open windows or browsersprivate int
parseAnswer
(String answer) void
setErrorMessage
(String errorMsg) int
showConfirmDialog
(String message, String title, String ok, String cancel) boolean
showDocument
(URL u) showForm
(String message, String title, List<IGuiCallback.FormItem> labels) void
showMessageDialog
(String message) void
showMessageDialogAndWait
(String message) showQuestionDialog
(String message, String title, String defaultValue)
-
Field Details
-
bugUpdateExecutor
-
br
-
-
Constructor Details
-
CommandLineUiCallback
public CommandLineUiCallback()
-
-
Method Details
-
showMessageDialogAndWait
- Specified by:
showMessageDialogAndWait
in interfaceIGuiCallback
- Throws:
InterruptedException
-
showMessageDialog
- Specified by:
showMessageDialog
in interfaceIGuiCallback
-
showConfirmDialog
- Specified by:
showConfirmDialog
in interfaceIGuiCallback
-
parseAnswer
-
getProgressMonitorInputStream
- Specified by:
getProgressMonitorInputStream
in interfaceIGuiCallback
-
setErrorMessage
- Specified by:
setErrorMessage
in interfaceIGuiCallback
-
displayNonmodelMessage
- Specified by:
displayNonmodelMessage
in interfaceIGuiCallback
-
showQuestionDialog
- Specified by:
showQuestionDialog
in interfaceIGuiCallback
-
showForm
- Specified by:
showForm
in interfaceIGuiCallback
-
showDocument
- Specified by:
showDocument
in interfaceIGuiCallback
-
getBugUpdateExecutor
Description copied from interface:IGuiCallback
Use this executor to queue bug collection updates without interfering with the GUI. Runs on the AWT event thread.- Specified by:
getBugUpdateExecutor
in interfaceIGuiCallback
-
isHeadless
public boolean isHeadless()Description copied from interface:IGuiCallback
If true, do not open windows or browsers- Specified by:
isHeadless
in interfaceIGuiCallback
-
invokeInGUIThread
- Specified by:
invokeInGUIThread
in interfaceIGuiCallback
-