Class RichScriptEditor
java.lang.Object
qupath.lib.gui.scripting.DefaultScriptEditor
qupath.lib.gui.scripting.richtextfx.RichScriptEditor
- All Implemented Interfaces:
ScriptEditor
Rich script editor for QuPath, which can be used for handling different languages.
Makes use of RichTextFX, Copyright (c) 2013-2017, Tomas Mikula and contributors (BSD 2-clause license).
- Author:
- Pete Bankhead
-
Property Summary
Properties inherited from class qupath.lib.gui.scripting.DefaultScriptEditor
currentLanguage, currentSyntax, sendLogToConsole
-
Field Summary
Fields inherited from class qupath.lib.gui.scripting.DefaultScriptEditor
beautifySourceAction, comboPasteEscape, completionCodeCombination, compressSourceAction, copyAction, cutAction, findAction, insertAllDefaultImportAction, insertDetectionMeasurementsAction, insertMuAction, insertObjectClassifiersAction, insertPixelClassifiersAction, insertQPExImportAction, insertQPImportAction, killRunningScriptAction, pasteAction, pasteAndEscapeAction, redoAction, runProjectScriptAction, runProjectScriptNoSaveAction, runScriptAction, runSelectedAction, smartEditing, smartEditingAction, undoAction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyCompletion
(EditableText control, AutoCompletions.Completion completion) Insert the text from the completion to the editable text.protected ScriptEditorControl
<? extends Region> protected ScriptEditorControl
<? extends Region> Methods inherited from class qupath.lib.gui.scripting.DefaultScriptEditor
addNewScript, currentLanguageProperty, currentSyntaxProperty, getClipboardText, getCurrentConsoleControl, getCurrentEditorControl, getCurrentLanguage, getCurrentScriptTab, getCurrentSyntax, getCurrentText, getSelectedText, getStage, pasteFromClipboard, promptToSetFontSize, scriptRunning, sendLogToConsoleProperty, showEditor, showScript, showScript, supportsFile
-
Constructor Details
-
RichScriptEditor
Constructor.- Parameters:
qupath
- the current QuPath instance.
-
-
Method Details
-
getNewEditor
- Overrides:
getNewEditor
in classDefaultScriptEditor
-
applyCompletion
Insert the text from the completion to the editable text.- Parameters:
control
-completion
-
-
getNewConsole
- Overrides:
getNewConsole
in classDefaultScriptEditor
-