Class ScriptTab

java.lang.Object
qupath.lib.gui.scripting.ScriptTab

public class ScriptTab extends Object
Class representing a script tab (e.g. on the right side of the script editor).

A ScriptTab object has:

  1. A main editor
  2. A console
  3. A language
And is displayed on the right side of the ScriptEditor.
Since:
v0.4.0
Author:
Pete Bankhead, Melvin Gelbard
  • Method Details

    • readFile

      protected void readFile(File file) throws IOException
      Read the file, set the editor's text area with the content of the file and return the detected language (based on the file extension).
      Parameters:
      file - the file to read
      Throws:
      IOException
    • refreshFileContents

      protected void refreshFileContents()
    • isModified

      public boolean isModified()
      Return
      Returns:
    • isModifiedProperty

      public BooleanProperty isModifiedProperty()
      Return the isModifiedProperty of this script tab (true if the script is modified, i.e. it isn't the same as the last saved version).
      Returns:
      isModifiedProperty
    • toString

      public String toString()
      Overrides:
      toString in class Object