Java Editor Templates Preferences

The following fields and buttons appear in the dialog:

Option Description
Name The name of the template.
Context The context determines where the template can be used and the set of available pre-defined template variables. The Java editor defines a context for Java and Javadoc areas.
  • Javadoc: Proposal is only offered in Javadoc comments
  • Java: Proposal is only offered in Java code
  • Java type members: Proposal is only offered when completing a Java type member
  • Java statement: Proposal is only offered when completing a Java statement
  • SWT: Proposal is only offered when completing in Java code with SWT on the build path
  • SWT type members: Proposal is only offered when completing a Java type member with SWT on the build path
  • SWT statement: Proposal is only offered when completing a Java statement with SWT on the build path
Automatically insert If selected, code assist will automatically insert the template if it is the only proposal available at the caret position.
Description A description of the template, which is displayed to the user when choosing the template.
Pattern The template pattern.
Insert Variables... Displays a list of pre-defined context specific template variables.

Related concepts

Templates
Template variables

Related reference

Templates preferences
Java content assist
Task tag preferences
Code templates preferences
Code style preferences