Class FileWindow

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

class FileWindow extends JInternalFrame implements ActionListener
An internal frame for script files.
  • Field Details

    • serialVersionUID

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

      private SwingGui debugGui
      The debugger GUI.
    • sourceInfo

      private Dim.SourceInfo sourceInfo
      The SourceInfo object that describes the file.
    • textArea

      FileTextArea textArea
      The FileTextArea that displays the file.
    • fileHeader

      private FileHeader fileHeader
      The FileHeader that is the gutter for textArea.
    • p

      private JScrollPane p
      Scroll pane for containing textArea.
    • currentPos

      int currentPos
      The current offset position.
  • Constructor Details

  • Method Details

    • load

      void load()
      Loads the file.
    • getPosition

      public int getPosition(int line)
      Returns the offset position for the given line.
    • isBreakPoint

      public boolean isBreakPoint(int line)
      Returns whether the given line has a breakpoint.
    • toggleBreakPoint

      public void toggleBreakPoint(int line)
      Toggles the breakpoint on the given line.
    • setBreakPoint

      public void setBreakPoint(int line)
      Sets a breakpoint on the given line.
    • clearBreakPoint

      public void clearBreakPoint(int line)
      Clears a breakpoint from the given line.
    • updateToolTip

      private void updateToolTip()
      Updates the tool tip contents.
    • getUrl

      public String getUrl()
      Returns the URL of the source.
    • updateText

      public void updateText(Dim.SourceInfo sourceInfo)
      Called when the text of the script has changed.
    • setPosition

      public void setPosition(int pos)
      Sets the cursor position.
    • select

      public void select(int start, int end)
      Selects a range of characters.
    • dispose

      public void dispose()
      Disposes this FileWindow.
      Overrides:
      dispose in class JInternalFrame
    • actionPerformed

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