Package qupath.lib.gui.scripting
Class ScriptTab
java.lang.Object
qupath.lib.gui.scripting.ScriptTab
Class representing a script tab (e.g. on the right side of the script editor).
A ScriptTab
object has:
- A main editor
- A console
- A language
ScriptEditor
.- Since:
- v0.4.0
- Author:
- Pete Bankhead, Melvin Gelbard
-
Method Summary
Modifier and TypeMethodDescriptionboolean
ReturnReturn theisModifiedProperty
of this script tab (true if the script is modified, i.e.protected void
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).protected void
toString()
-
Method Details
-
readFile
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
Return theisModifiedProperty
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
-