Interface ScriptController
public interface ScriptController
Provides access to some utility methods for use in the Beanshell scripting
panel. Accessible via "mm.scripter()" or "mm.getScriptController()".
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classThis exception signifies that the Beanshell interpreter has a stop request pending, which prevents most interactions with the system. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears scripting console output window.voidDisplays text in the scripting console output window.voidClears all methods and variables defined in the script interpreter.voidExecute the script located in the given file.
-
Method Details
-
runFile
Execute the script located in the given file.- Parameters:
file- File containing the script to be run.
-
message
Displays text in the scripting console output window.- Parameters:
text- Text to be displayed in the scripting console output window.- Throws:
ScriptController.ScriptStoppedException- if the script panel has been requested to stop execution.
-
clearMessageWindow
Clears scripting console output window.- Throws:
ScriptController.ScriptStoppedException- if the script panel has been requested to stop execution.
-
resetInterpreter
Clears all methods and variables defined in the script interpreter.- Throws:
ScriptController.ScriptStoppedException- if the script panel has been requested to stop execution.
-