BeanShell Plugin |
By Slava Pestov
sp@gjt.org |
This plugin embeds a BeanShell interpreter in jEdit. BeanShell is a
scripting language with a syntax very similar to that of Java. Information
about the language is available at <http://www.beanshell.org>.
When jEdit is started, this plugin first loads the jedit.bsh file from the
BeanShell.jar file, which contains some utility functions and adds a few
commands to the Plugins menu. Then, it loads all
files with extension ".bsh" from $HOME/.jedit/beanshell.
Arbitriary BeanShell commands can also be invoked from the console, if the
Console plugin is installed; select "BeanShell" from the shell combo box
and type BeanShell statements into the command field.
Entire jEdit plugins, with menu items, EditBus message handling, etc can also
be written in BeanShell; see the example scripts in the goodies directory.
To Do
- More robust error reporting
- Better documentation
Version 0.3.3
Requires jEdit 2.6pre5 and EditBus 0.10.
- Updates for new Console 2.3 API
- openselection.bsh script removed; a macro in the core jEdit distribution
now performs the same thing
- Deprecated createMenuItems(View, Vector, Vector) method no longer
supported; BeanShell plugins most override createMenuItems(Vector) instead
Version 0.3.2
Requires jEdit 2.5.1 and EditBus 0.9.4.
- Fixed changefont.bsh script to work with jEdit 2.6
Version 0.3.1
Requires jEdit 2.5final and EditBus 0.9.4.
- Oliver Rutherfurd's "List Buffers", "Add Marker Here", "Clear Markers"
and "Open Selection"
scripts now included
- "Hide Wait Cursor" removed, because it no longer works with jEdit 2.5
Version 0.3
Requires jEdit 2.2final and EditBus 0.9.
- Some more useful scripts included
- Fixed a few memory leaks
Version 0.2
Requires jEdit 2.2final and EditBus 0.9.
- Andre Kaplan's changefont.bsh script now included
- jedit.bsh now sets properties using jEdit.setTemporaryProperty()
- jedit.bsh now adds some useful commands to the 'Plugins' menu
- Improved error handling somewhat
Version 0.1
Requires jEdit 2.2final and EditBus 0.9.
Version 0.0.1
Requires jEdit 2.2pre8 and EditBus 0.7. First release.