When you run the script ``jhepwork.sh'' (Linux/Unix) or ``jhepwork.bat'' (Windows), you will see a main jHepWork editor. You may wish to activate on-fly spelling for a particular language. Copy OpenOffice dictionaries to the directory "dic" of the main jHepWork directory (where the jehep.jar file is located). Then go to menu "Tools"-"On-fly spelling" and select "active dictionary". To activate spelling, press "Start spelling" button on the main menu. Note: English dictionary is already included. Use double-click to replace a wrong word or to view alternative proposals
To reload File Browser and Jython/BeanShell consoles, use the reload buttons located directly on the tabs (small blue icons near the titles) For bookmarks, just click on the right panel. You should see a blue mark there. You can click again on it to come back to a specific text location.
All preference files are locate in the "$HOME/.jehep" directory (Linux) or "$HOME/jehep.ini" (Windows) They are: the user dictionary file, JabRef preference files, bshrc initialization file
The text editor contains one important button: ``run custom commands''. When you click on it, a specific BeanShell script will be executed. The scripts are located in the ``macros/user'' directory, and the are called ``run_java.bsh'' (to run java code), ``run_make.bsh'' (to run make file), ``run_latex.bsh'' to run latex and bibtex. You can specify custom BeanShell scripts via the menu of the jHepWork editor.
To run a Jython script, use ``run'' button from the Tool Bar of jHepWork. You can also use ``F8'' keyboard button for fast execution of a script.
In case of an error, jHepWork main editor will move the cursor to the line with the error. Press any key to remove line highlighting (red color).
One can also execute the file line-by-line. Use the "run" menu of the main toolbar.
One can also run BeanShell scripts and Java source codes in the same way. However, jHepWork has much less advanced error handling in this case.
One can get information on all available public methods while you are editing a jython file using the jHepWork Code Assist. When you type an object name followed by the dot, press ``F4''. You should see a code assist pop-up table with all the public methods. For example:
>>> from jhplot import * >>> c1=HPlot("test); >>> c1. # press F4 to see all JAVA public methods >>> c1="test string" # press F4 to see all Jython methods String >>> c1=[] # press F4 to see all Jython methods of List
You can sort and search for a particular method using the code assist table. Use the standard JAVA regular expressionshttp://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html. To sort the table with methods, click on column headers. Then you can push a selected method to the editor using a double-click or mouse menu. The selected method will be inserted after the dot.
The code assist of the JythonShell is different. Please read the help of the JythonShell.