|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.ui.util.BeanShell
public class BeanShell
Wrapper for the BSH interpreter console + some useful static methods for running scripts from inside JPicEdt.
Constructor Summary | |
---|---|
BeanShell(MDIManager mdimgr)
Open a new BSH console, and start the BSH interpreter interactively in it. |
Method Summary | |
---|---|
static void |
_main(String[] args)
|
static JMenu |
createMenu()
Return a JMenu containing a hierarchy of JMenu's and JMenuItem's built from the BSH scripts contained, first in the installation script directory, then in the user script directory. |
static void |
main(String[] args)
|
void |
run()
Run the BSH interpreter in interactive mode. |
static void |
runScript(String scriptPath,
String scriptName)
Run a BSH script with the given path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanShell(MDIManager mdimgr)
Method Detail |
---|
public static void _main(String[] args)
public void run()
run
in interface Runnable
public static void runScript(String scriptPath, String scriptName)
scriptPath
- absolute script pathscriptName
- script name, for instance "Repeat copy" ; used mainly for undo/redo menus.public static void main(String[] args)
public static JMenu createMenu()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |