| Oracle Help for the Web | Contents | Index | Search | Glossary | View Topic |
Code templates assist you in writing code more quickly and efficiently
by inserting text for commonly used statements. For example, the
"Iterate over a list" (itli) template inserts the
following code:
for (int i = 0; i < unknown.size(); i++)
{
Object object = (Object) unknown.get(i);
}
You can then modify the inserted text.
The predefined code templates are described
here. You can also define your own code templates, in the
Code Editor
Code Templates page of the Preferences dialog.
To evoke a defined code template:
The code as defined in the template is inserted in the source file. Import statements needed for the template, if any, are inserted at the top of the file.
Note: Ctrl+Enter is the accelerator assigned in the default keymap. You can assign an alternative.
Copyright © 1997, 2006, Oracle. All rights reserved.