Thread: beanshell?
View Single Post
  #11 (permalink)  
Old March 20th, 2006
jum's Avatar
jum jum is offline
Latest svn User
 
Join Date: April 6th, 2002
Location: Germany
Posts: 174
jum is flying high
Default

In case anyone wonders what this BeanShell stuff is about: it allows you to script the innards of the program without using a java compiler and without relaunching after modifications. The syntax is very much Java, so you can easily prototype new functionality and copy it to .java files later. An example FrostWire.bsh file can be found here:

FrostWire.bsh

If this file is put in ForstWire's preference folder it will be loaded upon startup and executed. Among other things it shows how to add a menu with custom commands that execute script functions.

Similar files can be loaded from the BeanShell console tab while the program is running. You can also type arbitrary statements here, for example print() statements to display variables in Java classes.
Reply With Quote