All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, MenuElement

class Menubar extends JMenuBar implements ActionListener
The debugger frame menu bar.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serializable magic number.
      See Also:
    • interruptOnlyItems

      private List<JMenuItem> interruptOnlyItems
      Items that are enabled only when interrupted.
    • runOnlyItems

      private List<JMenuItem> runOnlyItems
      Items that are enabled only when running.
    • debugGui

      private SwingGui debugGui
      The debugger GUI.
    • windowMenu

      private JMenu windowMenu
      The menu listing the internal frames.
    • breakOnExceptions

      private JCheckBoxMenuItem breakOnExceptions
      The "Break on exceptions" menu item.
    • breakOnEnter

      private JCheckBoxMenuItem breakOnEnter
      The "Break on enter" menu item.
    • breakOnReturn

      private JCheckBoxMenuItem breakOnReturn
      The "Break on return" menu item.
  • Constructor Details

    • Menubar

      Menubar(SwingGui debugGui)
      Creates a new Menubar.
  • Method Details

    • getBreakOnExceptions

      public JCheckBoxMenuItem getBreakOnExceptions()
      Returns the "Break on exceptions" menu item.
    • getBreakOnEnter

      public JCheckBoxMenuItem getBreakOnEnter()
      Returns the "Break on enter" menu item.
    • getBreakOnReturn

      public JCheckBoxMenuItem getBreakOnReturn()
      Returns the "Break on return" menu item.
    • getDebugMenu

      public JMenu getDebugMenu()
      Returns the "Debug" menu.
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Performs an action.
      Specified by:
      actionPerformed in interface ActionListener
    • addFile

      public void addFile(String url)
      Adds a file to the window menu.
    • updateEnabled

      public void updateEnabled(boolean interrupted)
      Updates the enabledness of menu items.