| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html lang="en"> |
| |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2006, 2012. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." > |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <title>Java Editor Templates Preferences</title> |
| <link rel="stylesheet" href="../../../../book.css" charset="ISO-8859-1" type="text/css"> |
| <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"></script> |
| </head> |
| |
| <body> |
| <h1><a name="dialog_help">Java Editor Templates Preferences</a></h1> |
| <p>The following fields and buttons appear in the dialog:</p> |
| <table border="1" cellspacing="0" cellpadding="5" width="100%" summary="Editor templates"> |
| <thead> |
| <tr> |
| <th>Option</th> |
| <th>Description</th> |
| </tr> |
| </thead> |
| <tbody valign="baseline"> |
| <tr> |
| <td>Name</td> |
| <td>The name of the template.</td> |
| </tr> |
| <tr> |
| <td>Context</td> |
| <td>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. |
| <ul> |
| <li><strong>Javadoc</strong>: Proposal is only offered in Javadoc comments</li> |
| <li><strong>Java</strong>: Proposal is only offered in Java code</li> |
| <li><strong>Java type members</strong>: Proposal is only offered when completing a Java type member</li> |
| <li><strong>Java statement</strong>: Proposal is only offered when completing a Java statement</li> |
| <li><strong>SWT</strong>: Proposal is only offered when completing in Java code with SWT on the build path</li> |
| <li><strong>SWT type members</strong>: Proposal is only offered when completing a Java type member with SWT on the build path</li> |
| <li><strong>SWT statement</strong>: Proposal is only offered when completing a Java statement with SWT on the build path</li> |
| </ul> |
| </td> |
| </tr> |
| <tr> |
| <td>Automatically insert</td> |
| <td>If selected, code assist will automatically insert the template if it is the only proposal available at the caret position.</td> |
| </tr> |
| <tr> |
| <td>Description</td> |
| <td>A description of the template, which is displayed to the user when choosing the template.</td> |
| </tr> |
| <tr> |
| <td>Pattern</td> |
| <td>The template pattern.</td> |
| </tr> |
| <tr> |
| <td>Insert Variables...</td> |
| <td>Displays a list of pre-defined context specific <a href="../../../../concepts/concept-template-variables.htm">template variables.</a></td> |
| </tr> |
| </tbody> |
| </table> |
| |
| <h3 class="related">Related concepts</h3> |
| <a href="../../../../concepts/concept-editor-templates.htm">Templates</a><br> |
| <a href="../../../../concepts/concept-template-variables.htm">Template variables</a> |
| <h3 class="related">Related references</h3> |
| <a href="ref-preferences-templates.htm">Templates preferences</a><br> |
| <a href="../../../../reference/ref-java-editor-code-assist.htm">Java content assist</a><br> |
| <a href="../compiler/ref-preferences-task-tags.htm">Task tag preferences</a><br> |
| <a href="../codestyle/ref-preferences-code-templates.htm">Code templates preferences</a><br> |
| <a href="../ref-preferences-code-style.htm">Code style preferences</a> |
| </body> |
| </html> |
| |