Durham University Home
 
       

John's topas page

jedit overview2

jedit installation

jedit examples

topas tutorials

jedit macros

Alan Coehlo's page

Bruker

Local topas help

 

Setting up jedit to use with Topas

1. Download and install Java first

To run jedit you may need to install the latest release of the Java (http://java.sun.com/j2se/1.4/) platform if it's not already installed. This will allow you to run Java applications. At the time of writing you should download J2SE v 1.4.2_05 JRE from:

http://java.sun.com/j2se/1.4.2/download.html

2. Download and install JEdit 4.2

Download the main jedit program from:

http://www.jedit.org/index.php?page=download

jEdit will install into two directories:

Application: c:\program files\jedit

Users data: c:\documents and setting\USER\.jedit

3. Download Plugins

To gain the full power of jedit you need to install various plugins. They can be downloaded from the net within jEdit using:

Plugin/Plugin Manager/Install.

Plugins to download:

1. XInsert: for code snippets.

2. Console: for shells.

3. Editor Scheme: for choosing a color scheme.

4. XSearch: for whole word searches without having to use about regular expressions.

5. ErrorList: works in conjunction with Console

If you're behind a firewall you can go directly to the jedit plugins page at http://plugins.jedit.org/ and download the plugins from there. They just need to be extracted to the jar directory which is normally C:\Program Files\jEdit\jars\.

Alternatively there is a single zip file linked here which you can download. Extract all the files it contains to C:\Program Files\jEdit\jars\ or the equivalent directory. N.B. these plugins work with my current version of jedit (4.2 at time of writing). If you need more up to date versions visit the jedit webpage.

The XInsert Plugin looks best when docked, use:

Utilities/Global Options/Docking

and choose to dock xinsert on the left, and the file browser/console at the bottom of the screen.

Once docked, clicking on the docked title hides/unhides docked windows. Thus XInsert and the File Browser can be docked/hidden at all times. One of the buttons on the file Browser's menu switches the directory to that of the current.

4. Setting up jEdit for editing INP files

Download the self extracting file INP_JEDIT.EXE and save it into any temporary directory. If you double click on the file it will self expand to create a number of files including the jEdit macro INP-SETUP.BSH. Run this macro from within jEdit using the menu comand:

Macros/Run Other macro/navigate and select inp-setup.bsh

This sets up jEdit for pretty editing of INP files. If you're interested, details of what INP-SETUP.BSH does can be found here. You might want to hide some of jedit's default nodes from the xinsert panel on the left if you never use them. This can be done from within the plugin options menu.

[Some people have had problems running inp-setup.bsh. This may be related to local access rights to various directories. One possible temporary work around is to download the .zip file linked here. Extract the directories to your c:\documents and settings\user\.jedit directory. This should create folders called e.g. macros, xinsert, schemes, etc and around 10 other files. You will then need to edit the file called "properties". Change every occurrence of the string "F\:\\topasa\\" to specify the directory where topas academic is installed on your computer (this occurs on ~4 lines). N.B. it's important to use two "\" symbols in the pathname.]

5. Editing in jedit

The cursor shape and whether it blinks can be changed using:

Utilities/Global Options/Text Area

Regular expressions are powerful for searching but it takes some practice. Non-use of regular expressions is not a hinderance to the editing of INP files. Try clicking on any word and hitting "alt-." for hypertext searching.

Using INP.JEDIT-SCHEME together with INP_MODE.XML produces red colored numbers for refined values. The color is decided through the special chararter ` appended to values after refinement. On subsequent runs the ` character is removed / inserted dependening on whether the corresponding parameter is refined or not.

6. Results

If everything has been set up properly your jedit screen should look something like the image below (click for higher resolution)


Modified 11-Oct-2004 by John S.O. Evans. Pages checked for Netscape 7 and Internet Explorer 5.5.