These macros handle text formatting and generation tasks that are particularly useful in writing Java code.
Inserts constructor for the class at the current caret position.
Inserts a Java class name based upon the buffer's file name.
Inserts a plausible Java package name for the current buffer.
The macro compares the buffer's path name with the elements of the classpath being used by the jEdit session. An error message will be displayed if no suitable package name is found. This macro will not work if jEdit is being run as a JAR file without specifying a classpath; in that case the classpath seen by the macro consists solely of the JAR file.
Acts as a wrapper script to the Save As action. If the buffer is a new file, it scans the first 250 lines for a Java class or interface declaration. On finding one, it extracts the appropriate filename to be used in the Save As dialog.
setXXX() methods that can be pasted into
the buffer text.
This macro presents a dialog that will “grab”
the names of instance variables from the caret line of the
current buffer and paste a corresponding
method to one of two text areas in the dialog. The text can be
edited in the dialog and then pasted into the current buffer
using the Insert... buttons. If the caret
is set to a line containing something other than an instance
variable, the text grabbing routine is likely to generate
As explained in the notes accompanying the source code,
the macro uses a global variable which can be set to configure
the macro to work with either Java or C++ code. When set for use
with C++ code, the macro will also write (in commented text)
setXXX() suitable for inclusion in a header
Create and display API documentation for the current buffer.
The macro includes various configuration variables you can change; see the comment at the beginning of the macro source for details.