blob: 8bc6a3f85b96788cd0e1ba20830d2b9459125ee0 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<title>
Organize imports
</title>
</head>
<body>
<h1>
Organize imports
</h1>
<p>
The following preferences define how the Organize Imports command generates the import statements in a compilation unit.
</p>
<table border="1" cellspacing="0">
<caption>
Organize Imports Preferences
</caption>
<thead>
<tr>
<th rowspan="1" colspan="1">
<p>
Option
</p>
</th>
<th rowspan="1" colspan="1">
<p>
Description
</p>
</th>
<th rowspan="1" colspan="1">
<p>
Default
</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Import order list
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
This list of prefixes shows the sequential order for packages imported into a Java compilation unit. Each entry defines a block. Different blocks are separated by a
spacer line.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
java<br>
javax<br>
org<br>
com
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
New...
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Adds a package name prefix to the import order list. In the resulting dialog, type a package name or package name prefix.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Edit...
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Change the name of an existing package name prefix. In the resulting dialog, type a package name or package name prefix.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Up
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Moves the selected package name prefix up in the import order list.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Down
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Moves the selected package name prefix down in the import order list.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Remove
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Removes a package name prefix from the import order list.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Load...
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Load a list of package name prefixes from a file.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Save...
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Save the list of package name prefixes to a file.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
n/a
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Number of imports needed before .* is used
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
The number of fully-qualified import statements that are allowed from the same package before <em>&lt;package&gt;.*</em> is used.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
99
</p>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
Do not create imports for types starting with a lower case letter
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
If enabled, types starting with a lowercase letter are not imported.
</p>
</td>
<td rowspan="1" colspan="1" valign="top" align="left">
<p>
On
</p>
</td>
</tr>
</tbody>
</table>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="../tasks/tasks-58.htm">Managing import statements</a><br>
</p>
<p>
<a href="../reference/ref-menu-source.htm">Source actions</a>
</p>
<a href="../hglegal2003.htm"></a><a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0"
width="324" height="14"></a>
</body>
</html>