Templates
Templates are located in [anyjdir]/templates/custom. For each file, an Entry appears in the "New" menu.
The following variables are expanded (case-sensitive) inside a template ($varname):
- ($tplname)
The name of the target file without extension.
- ($tplname)
The name of the target file including the extension.
- ($sourcename)
The name of the template beeing instantiated.
- ($sourcefullname)
The name.extension of the template beeing instantiated.
- ($System.property)
replaced by the appropriate System property (e.g. "($user.name)").
- ($date)
current date.
- ($action:createform)
looks for a file named ($tplname).gml in [anyjdir]/templates/custom/forms/ and creates an instance.
Asks for opening the GUI Builder if not already open.
- ($workspaceDir)
is replaced by the directory of the current workspace.
- ($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:".