Package edu.umd.cs.findbugs.gui2
Class MainFrameComponentFactory
- java.lang.Object
-
- edu.umd.cs.findbugs.gui2.MainFrameComponentFactory
-
- All Implemented Interfaces:
java.io.Serializable
public class MainFrameComponentFactory extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
MainFrameComponentFactory.BugSummaryMouseListener
Listens for when cursor is over the label and when it is clicked.private static class
MainFrameComponentFactory.InitializeGUI
-
Field Summary
Fields Modifier and Type Field Description private boolean
listenerAdded
private static java.util.logging.Logger
LOGGER
private MainFrame
mainFrame
private java.net.URL
sourceLink
-
Constructor Summary
Constructors Constructor Description MainFrameComponentFactory(MainFrame mainFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.awt.Component
bugSummaryComponent(BugAnnotation value, BugInstance bug)
java.awt.Component
bugSummaryComponent(java.lang.String str, BugInstance bug)
Creates bug summary component.(package private) javax.swing.JPanel
createSourceCodePanel()
Creates the source code panel, but does not put anything in it.(package private) javax.swing.JPanel
createSourceSearchPanel()
(package private) void
initializeGUI()
private void
removeLink(javax.swing.JComponent component)
(package private) void
setSourceTab(java.lang.String title, BugInstance bug)
Sets the title of the source tabs for either docking or non-docking versions.private void
setStyleSheets()
private boolean
sourceCodeExists(SourceLineAnnotation note)
(package private) javax.swing.JPanel
statusBar()
(package private) javax.swing.JSplitPane
summaryTab()
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
mainFrame
private final MainFrame mainFrame
-
sourceLink
private java.net.URL sourceLink
-
listenerAdded
private boolean listenerAdded
-
-
Constructor Detail
-
MainFrameComponentFactory
public MainFrameComponentFactory(MainFrame mainFrame)
-
-
Method Detail
-
statusBar
javax.swing.JPanel statusBar()
-
summaryTab
javax.swing.JSplitPane summaryTab()
-
setStyleSheets
private void setStyleSheets()
-
createSourceCodePanel
javax.swing.JPanel createSourceCodePanel()
Creates the source code panel, but does not put anything in it.
-
createSourceSearchPanel
javax.swing.JPanel createSourceSearchPanel()
-
setSourceTab
void setSourceTab(java.lang.String title, @CheckForNull BugInstance bug)
Sets the title of the source tabs for either docking or non-docking versions.
-
removeLink
private void removeLink(javax.swing.JComponent component)
-
initializeGUI
void initializeGUI()
-
bugSummaryComponent
java.awt.Component bugSummaryComponent(BugAnnotation value, BugInstance bug)
-
bugSummaryComponent
public java.awt.Component bugSummaryComponent(java.lang.String str, BugInstance bug)
Creates bug summary component. If obj is a string will create a JLabel with that string as it's text and return it. If obj is an annotation will return a JLabel with the annotation's toString(). If that annotation is a SourceLineAnnotation or has a SourceLineAnnotation connected to it and the source file is available will attach a listener to the label.
-
sourceCodeExists
private boolean sourceCodeExists(@Nonnull SourceLineAnnotation note)
-
-