Class DebugTextDisplay

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ScrollPaneConstants

public class DebugTextDisplay extends JScrollPane
This is a text area that displays the debug text with scroll bars.
Since:
10055
See Also:
  • Field Details

  • Constructor Details

    • DebugTextDisplay

      private DebugTextDisplay()
      Creates a new text area.
      Since:
      10585
    • DebugTextDisplay

      public DebugTextDisplay(String textToDisplay)
      Creates a new text area with an initial text to display
      Parameters:
      textToDisplay - The text to display.
    • DebugTextDisplay

      public DebugTextDisplay(BugReport report)
      Creates a new text area that displays the bug report data
      Parameters:
      report - The bug report data to display.
      Since:
      10585
  • Method Details

    • setCodeText

      private void setCodeText(String textToDisplay)
      Sets the text that should be displayed in this view.
      Parameters:
      textToDisplay - The text
    • copyToClipboard

      public boolean copyToClipboard()
      Copies the debug text to the clipboard. This includes the code tags for trac.
      Returns:
      true if copy was successful
      Since:
      11102 (typo)
    • getCodeText

      public String getCodeText()
      Gets the text this are displays, without the code tag.
      Returns:
      The stripped text set by setCodeText(String)
      Since:
      10585