Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently, fileOpen handles the task of loading the file and initializing the text area.
Please add a method
void loadScriptFile(File scriptFile) {
inputArea.text = scriptFile.readLines().join('\n')
setDirty(false)
inputArea.caretPosition = 0
}
and change fileOpen accordingly to
void fileOpen(EventObject evt = null) {
scriptFile = selectFilename()
if (scriptFile != null)
}
The loadScriptFile method isn't strictly necessary but eases the use of Console in an embedded environment.