Adding External Tools
It is possible to call up any external program you like from within AnyJ. Tools defined
here appear in PopupMenus in the "Tools" submenu. Some of the possibilities are integration of an
external CersionControl system such as RCS, CVS, or SourceSave. Note that usually some configurationm work
needs to be done to the external Version Control System (especially SourceSafe, RCS) in order to
let it work with Anyj properly.
Note that AnyJ looks for a tool named "CHECKOUT" each time you try to edit a read-only file.
If a tool named "CHECKOUT" is found, it is executed automatically.
How to add a tool:
-
Press Add New to create a new tool.
-
Enter a name for that tool (Tool Name). This name is used for the menu item later on. It has
no relation to the name of the program called.
-
Specifiy the working directory the tool is to run with. You can insert context-sensitive
variables with the ComboBox on the right (the meaning of those variables is explained below).
-
Specify a commandline, including the name of the program to call. Again it is possible to
insert environment variables using the ComboBox.
- Specify whether the program's output should be redirected to AnyJ's console or not.
The values of the "variables" are context dependent:
- ($workspaceDir)
is replaced by the directory of the current workspace.
- ($classpath)
is replaced by the classpath currently set in the compile-options.
- ($currentFile)
is replaced by the name (without directories) of the eventually selected file (resp. by == "").
- ($currentDir)
is replaced by the directory of the eventually selected file/dir. Therefore ($currentDir)\($currentFile)
constitute an absolute path of a selected file, e.g. in the FileTree or the editor.
- ($currentClass)
is replaced by the fully qualified name of the eventually selected class (e.g., in the editor).
- ($currentLineNr)
is replaced by the number of the line containing the cursor in the editor
(when tool is called up from within the editor).
- ($currentTextSel)
is replaced by the currently selected text in the editor (when tool is
called up from within the editor).
- ($ask:Text to display)
asks interactively each time the tool is called up using the text specified behind "ask:".