Custom command parameters lets you create complex but generic commands that can be used under all situations. It is important to understand how this works. Command parameters are accepted in Startup directory field and arguments field in the Custom commands dialog.
Custom command parameters can be typed in manually or it can be picked from a listbox. The latter is preferable because it is important to type the parameter accurately for it to work. Custom command parameter is not case sensitive but the syntax is sensitive. Using custom command parameters it is possible to build complex paths and names. Anything outside of custom command parameter is taken literally including the spaces and the quotes. For example it is possible to have the argument field value "<File Name>.java " which will append the current file name in the editor with ".java" and make a full file name. Following is a rundown of the various parameters defined under Kawa. Some of the parameters refer to current file. Current file is the file open in the editor if the command is picked from the main menu. However, if the command is picked from the project tree then current file is the selected file in the project tree. This is an important distinction to keep in mind when executing and defining the command. The same is true for current project. Current project is the project open when the menu is picked from the main menu or it is the project selected in the project tree when the command is picked from the project tree.
?Your Prompt Here? - Pops up a dialog box allowing a value to be entered at the time the command is executed. The appropriate title of the dialog box is the text placed between the two question marks. This value can be used in the Startup Directory, Arguments, and Output File Name boxes, and may be used more than once on the arguments field.
<Class of File> - Parses the file and finds the first class or interface and builds the class or interface name with the package name. For example, if there is file with the package Demo and class name RunDemo then <Class of File> will return Demo.RunDemo.
<ClassPath> - Current classpath defined in Kawa.
<File Directory> - Directory of the current file.
<File Ext> - Extension of the current file with the dot.
<File Name With Ext> - Current file name with extension but no path.
<File Name> - Just the file name
<File Path> - Full file name with path
<Open Project class files> - List of all open project files separated by space in between. All file names are quoted to allow spaces in the names.
<Open Project File Names> - List of all open project file names separated by space. The names are quoted.
<Open Project Files With Path> - List of all Open project files with full path. The paths are quoted.
<Open Project Files WO Path> - List of all Open project files without path. The names are quoted.
<Open Project Main Class> - Full class name of the main class file just like <Class of File>.
<Open Project Main Class File Name> - Name of the main class file of the open project.
<Open Project Main HTML File> - Full path name of the main HTML file of the open project.
<Project Directory> - Directory of the current project.
<Project Name> - Name of the current project.
<Project Path> - Path of the current project.
<Project Packages> - List of all packages in the current project.
<Project Classes> - List of all classes in the current project.
<Program Path> - Path to directory Kawa is located in.
<User Path> - Path to local user directory (Different from <Program Path> in a network setup).