Package edu.umd.cs.findbugs
Interface IGuiCallback
-
- All Known Implementing Classes:
AbstractSwingGuiCallback,CommandLineUiCallback
public interface IGuiCallbackInterface for any kind of GUI attached to the current FindBug analysis- Author:
- Andrei
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIGuiCallback.FormItem
-
Field Summary
Fields Modifier and Type Field Description static intCANCEL_OPTIONstatic intNO_OPTIONstatic intOK_CANCEL_OPTIONstatic intYES_NO_CANCEL_OPTIONstatic intYES_NO_OPTIONstatic intYES_OPTION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisplayNonmodelMessage(java.lang.String title, java.lang.String message)java.util.concurrent.ExecutorServicegetBugUpdateExecutor()Use this executor to queue bug collection updates without interfering with the GUI.java.io.InputStreamgetProgressMonitorInputStream(java.io.InputStream in, int length, java.lang.String msg)voidinvokeInGUIThread(java.lang.Runnable r)booleanisHeadless()If true, do not open windows or browsersvoidregisterCloud(Project project, BugCollection collection, Cloud cloud)Called as soon as the cloud object is created, before it is initialized.voidsetErrorMessage(java.lang.String errorMsg)intshowConfirmDialog(java.lang.String message, java.lang.String title, java.lang.String ok, java.lang.String cancel)booleanshowDocument(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)voidshowMessageDialog(java.lang.String message)voidshowMessageDialogAndWait(java.lang.String message)java.lang.StringshowQuestionDialog(java.lang.String message, java.lang.String title, java.lang.String defaultValue)voidunregisterCloud(Project project, BugCollection collection, Cloud cloud)
-
-
-
Field Detail
-
YES_OPTION
static final int YES_OPTION
- See Also:
- Constant Field Values
-
NO_OPTION
static final int NO_OPTION
- See Also:
- Constant Field Values
-
CANCEL_OPTION
static final int CANCEL_OPTION
- See Also:
- Constant Field Values
-
YES_NO_OPTION
static final int YES_NO_OPTION
- See Also:
- Constant Field Values
-
YES_NO_CANCEL_OPTION
static final int YES_NO_CANCEL_OPTION
- See Also:
- Constant Field Values
-
OK_CANCEL_OPTION
static final int OK_CANCEL_OPTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
isHeadless
boolean isHeadless()
If true, do not open windows or browsers
-
showMessageDialog
void showMessageDialog(java.lang.String message)
-
invokeInGUIThread
void invokeInGUIThread(java.lang.Runnable r)
-
showConfirmDialog
int showConfirmDialog(java.lang.String message, java.lang.String title, java.lang.String ok, java.lang.String cancel)
-
showQuestionDialog
java.lang.String showQuestionDialog(java.lang.String message, java.lang.String title, java.lang.String defaultValue)
-
showForm
java.util.List<java.lang.String> showForm(java.lang.String message, java.lang.String title, java.util.List<IGuiCallback.FormItem> labels)
-
getProgressMonitorInputStream
java.io.InputStream getProgressMonitorInputStream(java.io.InputStream in, int length, java.lang.String msg)
-
setErrorMessage
void setErrorMessage(java.lang.String errorMsg)
-
displayNonmodelMessage
void displayNonmodelMessage(java.lang.String title, java.lang.String message)
-
showDocument
boolean showDocument(java.net.URL u)
-
registerCloud
void registerCloud(Project project, BugCollection collection, Cloud cloud)
Called as soon as the cloud object is created, before it is initialized. Useful for adding status msg listener.
-
unregisterCloud
void unregisterCloud(Project project, BugCollection collection, Cloud cloud)
-
getBugUpdateExecutor
java.util.concurrent.ExecutorService getBugUpdateExecutor()
Use this executor to queue bug collection updates without interfering with the GUI. Runs on the AWT event thread.
-
showMessageDialogAndWait
void showMessageDialogAndWait(java.lang.String message) throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
-