blob: bb99814c70436d188fd7519f1390466838bf3238 [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 2007, 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 Save Actions 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 Save Actions Preferences</h1>
<p>Indicate your preferences for the Save Actions settings on the <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.SaveParticipantPreferencePage)")'> <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Save Actions preference page"> <b>Java &gt; Editor &gt; Save Actions</b></a> preference page.</p>
<p>A set of actions which are executed on each save of the Java editor can be specified on this page.
</p>
<table border="1" cellspacing="0" cellpadding="5" summary="Save sctions settings">
<thead>
<tr>
<th>
<p>Option</p>
</th>
<th>
<p>Description</p>
</th>
<th>
<p>Default</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top">
<p>Perform the selected actions on save</p>
</td>
<td valign="top">
<p>If enabled, then the selected actions below will be executed on save.</p>
</td>
<td valign="top">
<p>Off</p>
</td>
</tr>
<tr>
<td valign="top">
<p>Format source code</p>
</td>
<td valign="top">
<p>If enabled, then the source code will be formatted on each save. The code will be formatted according to the
active profile selected on the <a href="../../../preferences/java/codestyle/ref-preferences-formatter.htm"><b>Java &gt; Code Style &gt; Formatter</b></a> preference page.</p>
</td>
<td valign="top">
<p>Off</p>
</td>
</tr>
<tr>
<td valign="top" style="padding-left: 2em;">
<p>Format all lines</p>
</td>
<td valign="top">
<p>If selected, all lines in the file will be formatted on save.</p>
</td>
<td valign="top">
<p>On</p>
</td>
</tr>
<tr>
<td valign="top" style="padding-left: 2em;">
<p>Format edited lines</p>
</td>
<td valign="top">
<p>If selected, only the lines that have been modified since the last save are formatted on save.</p>
</td>
<td valign="top">
<p>Off</p>
</td>
</tr>
<tr>
<td valign="top">
<p>Organize imports</p>
</td>
<td valign="top">
<p>If enabled, then the imports will be organized on each save. Change the organize import settings on the
<a href="../../../preferences/java/codestyle/ref-preferences-organize-imports.htm"><b>Java &gt; Code Style &gt; Organize Imports</b></a> preference page.</p>
</td>
<td valign="top">
<p>On</p>
</td>
</tr>
<tr>
<td valign="top">
<p>Additional actions</p>
</td>
<td valign="top">
<p>If enabled, then additional actions will be executed on save. To add and remove actions select <b>Configure...</b>.</p>
</td>
<td valign="top">
<p>Off</p>
</td>
</tr>
</tbody>
</table>
<h3 class="related">Related references</h3>
<a href="../ref-preferences-editor.htm">Java editor preference page</a><br>
<a href="../codestyle/ref-preferences-cleanup.htm">Clean Up preference page</a>
</body>
</html>