This class integrates the BeanShell interpreter into jEdit. One method is worth mentioning here because it can be used in a macro to chain together execution of several macros:
public static void runScript( | View | view, |
Reader | in, | |
String | path, | |
boolean | ownNamespace) ; |
If the in parameter is non-null, the script is read from that stream; otherwise it is read from the file identified by path. Within that script, references to buffer, textArea and editPane are determined with reference to the view parameter.
The parameter ownNamespace determines whether a separate namespace will be established for the BeanShell interpreter. If set to false, methods and variables defined in the script will be available to all future uses of BeanShell; if set to true, they will be lost as soon as the script finishes executing. jEdit uses a value of false when running startup scripts, and a value of true when running all other macros.