Class LaunchAppropriateUI

java.lang.Object
edu.umd.cs.findbugs.LaunchAppropriateUI

public class LaunchAppropriateUI extends Object
Class to launch the appropriate textUI or GUI. This class is the Main-Class in the findbugs.jar manifest, and is responsible for running an appropriate main() method.
Author:
Bill Pugh, David Hovemeyer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    UI code for the old Swing GUI.
    static final int
    UI code for the new Swing GUI.
    static final int
    UI code for displaying command line help.
    static final int
    UI code for displaying command line version information.
    static final int
    UI code for the text (command line) UI.
    static final Map<String,Integer>
    Map of UI name strings to integer UI codes.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Launch the appropriate UI.
    static void
    main(String[] args)
    main() method.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TEXTUI

      public static final int TEXTUI
      UI code for the text (command line) UI.
      See Also:
    • GUI1

      public static final int GUI1
      UI code for the old Swing GUI. This is deprecated now.
      See Also:
    • GUI2

      public static final int GUI2
      UI code for the new Swing GUI.
      See Also:
    • SHOW_HELP

      public static final int SHOW_HELP
      UI code for displaying command line help.
      See Also:
    • SHOW_VERSION

      public static final int SHOW_VERSION
      UI code for displaying command line version information.
      See Also:
    • uiNameToCodeMap

      @StaticConstant public static final Map<String,Integer> uiNameToCodeMap
      Map of UI name strings to integer UI codes.
  • Constructor Details

    • LaunchAppropriateUI

      public LaunchAppropriateUI(String[] args)
      Constructor.
      Parameters:
      args - command line arguments
  • Method Details

    • launch

      public void launch() throws Exception
      Launch the appropriate UI.
      Throws:
      Exception
    • main

      public static void main(String[] args) throws Exception
      main() method. This is where execution of FindBugs (any UI) starts.
      Parameters:
      args - command line arguments
      Throws:
      Exception