java - Java programming language templates
hkjava.emf - Java programming language hook definition
java.etf - Java programming language template file
.java, .jav - Java
The java file type templates share much with the c(9) template definitions, utilising the electric 'C' features for automatic layout of text.
General Editing
Hilighting
Auto Layout
restyle-region(3) and restyle-buffer(3) are available to reformat (re-layout) selected sections of the buffer, or the whole buffer, respectively.
Comments may be formatted using esc o, which reformats the comments according to the current fill paragraph. If a comment commences with /***... then the comment is automatically formatted to a box.
Folding and Information Hiding
Tags
On invoking the tag generator then the user is presented with a dialog box which specifies the generation option of the tags file. The base directory of the tags file search and tagging options may be specified to locate all of the definitions within the code space.
The tags file is extremely useful where the user is dealing with inherited source code spread over multiple directories. Generation of a recursive tag file with all searching options enabled allows labels to be located extremely rapidly (certainly faster than IDE environments).
Folding and Information Hiding
The Tools -> C-Tools menu allows #define's to be evaluated within the buffer. Where the state of a #if is established to be false (using the #define information) then the disabled region of code is grayed out indicating which regions of the code are active.
Working Environment
rcs-file(2) is automatically invoked if an RCS file is detected, the normal check-in/out operations may be performed through the editor.
Short Cuts
C-c C-c - Comment out the current line.
C-c C-d - Uncomment the current line.
C-c C-e - Comment to the end of the line with stars (*).
A-C-i - Restyle the current region.
esc q - Format a comment.
esc o - Format a comment.
f2 - (un)fold the current region
f3 - (un)fold all regions
The hilighting is typically extended using a file myjava.emf
c(9), collapse-all(3), collapse-current(3), compile(3), find-tag(2), find-tag(2), javatags(3f), rcs-file(2), restyle-buffer(3), restyle-region(3), time(2m).
(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12