Editing Java Code
See Also
The IDE has many features to simplify coding of Java files such as:
- Form Editor. Used for visually
designing GUI applications.
- Code completion.
A dialog box appears and offers possible ways of completing the expression
you are typing.
- Word match. After you type the beginning
characters of a word used elsewhere in your code, the Source Editor generates
the rest of the word.
- Reformatting.
- Source Synchronization.
Keeps Java implementation classes synchronized with their interface and abstract
superclass methods.
- "Go To Class" Command. Enables you to
open a Java file in the Source Editor by typing only the class name.
- "Go To" Shortcuts. Keyboard shortcuts that
enable you to navigate to a source file, declaration statement, or Javadoc
documentation based on the location of the insertion point.
- Code Folding. Enables you to hide
sections of code, such as Javadoc comments and method bodies.
- Pair Completion, Smart Enter, and
Smart Semicolons. When you type a quotation mark, bracket, brace,
or parenthesis, the Source Editor automatically inserts the closing character.
The matching is "smart", so the closing characters are not duplicated if you
type them yourself.
- Macros and abbreviations.
- Override and Implement Methods Dialog
Box. View methods that you can override or implement in a class.
- Fast Import. The Alt-Shift-I keyboard
shortcut helps you generate an import statement for the class you are typing.
- Generation of code for beans.
You can generate getter and setter methods for an existing field, or create
a bean property that includes the field, getter method, and setter method.
- Contextual menu commands for generating code. You can move the insertion
point to an area within a class or interface and choose Add from the contextual
menu to add methods, fields, and other class elements to your code.
See the Source Editor for a description of the
general features of the Source Editor window.
Legal Notices