Class MainFrameComponentFactory

java.lang.Object
edu.umd.cs.findbugs.gui2.MainFrameComponentFactory
All Implemented Interfaces:
Serializable

public class MainFrameComponentFactory extends Object implements Serializable
See Also:
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • mainFrame

      private final MainFrame mainFrame
    • listenerAdded

      private boolean listenerAdded
  • Constructor Details

    • MainFrameComponentFactory

      public MainFrameComponentFactory(MainFrame mainFrame)
  • Method Details

    • statusBar

      JPanel statusBar()
    • summaryTab

      JSplitPane summaryTab()
    • setStyleSheets

      private void setStyleSheets()
    • createSourceCodePanel

      JPanel createSourceCodePanel()
      Creates the source code panel, but does not put anything in it.
    • createSourceSearchPanel

      JPanel createSourceSearchPanel()
    • setSourceTab

      void setSourceTab(String title, @CheckForNull BugInstance bug)
      Sets the title of the source tabs for either docking or non-docking versions.
    • removeLink

      private void removeLink(JComponent component)
    • initializeGUI

      void initializeGUI()
    • bugSummaryComponent

      Component bugSummaryComponent(BugAnnotation value, BugInstance bug)
    • bugSummaryComponent

      public Component bugSummaryComponent(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)