public interface ScriptOwner
Script owner (for example an editor) which can apply changes to the source code. Script owners should register with the script interprets so that the interpret may ask them to save the script when needed (for example, if the script compiler needs to save the changes to a file before compilation).
Script interprets should never save the file on their own because they don't know who currently edits the document.
T-Plan Robot Enterprise, (C) 2009-2022 T-Plan Limited. All rights reserved.
Modifier and Type | Method and Description |
---|---|
void |
needToRecompile()
Notify the script owner that the script changed in an unspecified way and
needs to be recompiled.
|
void |
save(TestScriptInterpret interpret)
Notify the script owner that the interpret wishes to save the code to the
file system.
|
void save(TestScriptInterpret interpret) throws IOException
interpret
- the interpret.IOException
- on an I/O error.void needToRecompile()