The script jhepwork.sh (Linux/UNIX) or jhepwork.bat (Windows) starts the jHepWork IDE from the file jehep.jar, called jeHEP. 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 the button Start spelling from the main menu. Note: English dictionary is already included to the downloaded package. Use double-click to replace a wrong word or to view alternative proposals
To reload either the File Browser or Jython/Bean shell consoles, one should use the reload buttons located directly on small blue tabs. For bookmarks, the user should click on the right border of the jeHEP editor window. One should see a blue mark there, if the bookmark is set. One can click 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 and other initialization files
The text editor contains one important button: run custom commands, indicated by tool-tip. When one clicks on it, a BeanShell script loaded to jeHEP editor will be executed. This button runs system scripts located in the macros/user directory. They are called run_java.bsh (to run Java code), run_make.bsh (to run make file), run_latex.bsh to run latex and bibtex commands. One can specify a custom BeanShell script via the menu of the jHepWork IDE.
The jHepWork IDE can be used to edit LaTeX files. It has integrated BibTeX bibliography reference manager used to insert references (Tools - JabRef) and the LaTeX Tools package to insert mathematical characters (Tools - LaTeX tools.
If a script with the user analysis is ready, one has to save it. jHepWork will try to detect Jython syntax problems. At this stage, it cannot check run-time errors associated with particular class.
To run an Jython script, use the run button from the Tool Bar of jHepWork. You can also use F8 key for fast execution of a script. In case of an error, the jHepWork main editor will move the cursor to the appropriate line with error. Press any key to remove the line highlighting (red color).
One can also execute an Jython file line-by-line. Use the run menu of the main toolbar.
One can run BeanShell scripts and Java source codes in the same way. However, jHepWork has much less advanced error handling in this case. As in Jython case, the F8 key can be used fast execution of a BeanShell script.
If the user is working with the Jython shell, all methods associated with a particular object are shown in a pop-up table after typing dot after the name of an object. For example, if an Jython or Java object called c1 was initialized, type:
>>> c1. # show all methodsThis shows a pop-up table with all methods associated with this object.
However, the help system works differently for files in the jeHEP. In this case, one can get the information on available public methods using the jHepWork Code Assist. When the user types an object name followed by the dot, F4 key can be used to check the methods associated with this object. For example:
>>> from jhplot import HPlot >>> c1=HPlot("test); >>> c1. # press F4 to see all Java public methods >>> c1="test string" # press F4 to see all Jython methods of String >>> c1=[] # press F4 to see all Jython methods of ListAfter pressing F4 key, the user should be able to see a pop-up table with all methods associated with a particular Jython or Java class.
One can also search for a particular method using the pop-up table of the Code Assist. For this, use the standard Java regular expressions [9]. To sort raws in the table with methods, one should click on column headers. Then one 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 also allows to look at the full API of the jHPlot class or method. Click on the selected line in the Code Assist table and use the right mouse button to get the associated JavaDoc information.
The code assist of the BeanShell is different. Please read the help of the Jython shell.