The jsMenu object is a simple and quick way to add menues to the BlueJ tools menu. It allows the script writer to add a menu Item without knowing the exact detail of the undelyng mechanism. The methods available are the following.
jsMenu.addAction ('Show Console', 'jsConsole.setVisible(true);' );
addAction() returns an object that represent the action we would like to be performed. This object can bre retained since it can be used later to remove the given menu.
Returns an array of actions that you can then inspect or use to remove all menues related to BlueJscript.
Removes a single action from the menu tree.