blob: 805392197dd481758a6c254578c46c60eda07d6f [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. 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>
Java Editor Templates Preferences
</h1>
<p>
The
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.JavaTemplatePreferencePage)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Templates preference page">
<b>Java &gt; Editor &gt; Templates</b></a> preference page
allows to create new and edit existing templates. A template is a convenience for the programmer to quickly insert often reoccurring source
code patterns.
</p>
<p>
The following buttons allow manipulation and configuration of templates:
</p>
<table border="1" cellspacing="0" cellpadding="5" width="100%" summary="Templates options">
<thead>
<tr>
<th>
<p>
Action
</p>
</th>
<th>
<p>
Description
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top">
<p>
New...
</p>
</td>
<td valign="top">
<p>
Opens the <a href="ref-preferences-edit-template-dialog.htm">Template dialog</a> to create a new template.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Edit...
</p>
</td>
<td valign="top">
<p>
Opens the <a href="ref-preferences-edit-template-dialog.htm">Template dialog</a> to edit the currently selected template.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Remove
</p>
</td>
<td valign="top">
<p>
Removes all selected templates.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Restore Removed
</p>
</td>
<td valign="top">
<p>
Restores any preconfigured templates that have been removed.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Revert to Default
</p>
</td>
<td valign="top">
<p>
Restores any preconfigured templates to their default. This does not modify user-created templates.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Import...
</p>
</td>
<td valign="top">
<p>
Imports templates from the file system.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Export...
</p>
</td>
<td valign="top">
<p>
Exports all selected templates to the file system.
</p>
</td>
</tr>
<tr>
<td valign="top">
<p>
Use code formatter
</p>
</td>
<td valign="top">
<p>
If enabled, the template is formatted according to the code formatting rules specified in the <a href="../codestyle/ref-preferences-formatter.htm">Code Formatter preferences</a>, prior to insertion.
Otherwise, the template is inserted as is, but correctly indented.
</p>
</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><br>
<h3 class="related">Related references</h3>
<a href="ref-preferences-edit-template-dialog.htm">Template editing</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>