Package qupath.lib.gui.scripting
Interface ScriptEditor
- All Known Implementing Classes:
- DefaultScriptEditor,- RichScriptEditor
public interface ScriptEditor
Minimal interface for a script editor that the GUI can call.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanAttempt to close the editor, saving changes if requested.voidShow the script editor.voidshowScript(File file) Show the script editor, opening an existing script file.voidshowScript(String name, String script) Show the script editor, including a new script with the specified name.booleansupportsFile(File file) Check if the script editor supports a particular file.
- 
Method Details- 
showEditorvoid showEditor()Show the script editor.
- 
showScriptShow the script editor, including a new script with the specified name.- Parameters:
- name- name of the script to show
- script- content of the script
 
- 
showScriptShow the script editor, opening an existing script file.- Parameters:
- file- the script file
 
- 
supportsFileCheck if the script editor supports a particular file.- Parameters:
- file-
- Returns:
 
- 
requestCloseboolean requestClose()Attempt to close the editor, saving changes if requested.- Returns:
- True if the editor can be closed without losing changes, unless the user consents to losing changes.
 
 
-