blob: 7ff9a1395252b037cfbb39767ad4751427949467 [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">
<title>New Java Class wizard</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>New Java Class Wizard</h1>
<p>This wizard helps you to create a new Java class in in a Java project.</p>
<table border="1" cellspacing="0">
<caption>
Java Class Options<br>
</caption>
<tr>
<th>Option</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td align="left" valign="top">Source folder</td>
<td align="left" valign="top">Enter a source folder for the new class. Either type a valid source folder path or click <span class="control">Browse</span> to select a
source folder via a dialog.</td>
<td align="left" valign="top">The source folder of the element that was selected when the wizard has been started.</td>
</tr>
<tr>
<td align="left" valign="top">Package</td>
<td align="left" valign="top">Enter a package to contain the new class. You can select either this option or the Enclosing Type option, below. Either type a valid package
name or click <span class="control">Browse</span> to select a package via a dialog.</td>
<td align="left" valign="top">The package of the element that was selected when the wizard has been started.</td>
</tr>
<tr>
<td align="left" valign="top">Enclosing type</td>
<td align="left" valign="top">Select this option to choose a type in which to enclose the new class. You can select either this option or the Package option, above. Either
type a valid name in the field or click <span class="control">Browse</span> to select a type via a dialog.</td>
<td align="left" valign="top">The type or the primary type of the compilation unit that was selected when the wizard has been started or &lt;blank&gt;</td>
</tr>
<tr>
<td align="left" valign="top">Name</td>
<td align="left" valign="top">Type a name for the new class.</td>
<td align="left" valign="top">&lt;blank&gt;</td>
</tr>
<tr>
<td align="left" valign="top">Modifiers</td>
<td align="left" valign="top">
<p>Select one or more access modifiers for the new class.</p>
<ul>
<li>Either public, default, private, or protected (private and protected are only available if you specify an enclosing type)</li>
<li>abstract</li>
<li>final</li>
<li>static (only available if you specify an enclosing type)</li>
</ul>
</td>
<td align="left" valign="top">public</td>
</tr>
<tr>
<td align="left" valign="top">Superclass</td>
<td align="left" valign="top">Type or click <span class="control">Browse</span> to select a superclass for this class.</td>
<td align="left" valign="top">The type (not the compilation unit!) that was selected when the wizard has been started or &lt;java.lang.Object&gt;</td>
</tr>
<tr>
<td align="left" valign="top">Interfaces</td>
<td align="left" valign="top">Click <span class="control">Add</span> to choose interfaces that the new class implements.</td>
<td align="left" valign="top">&lt;blank&gt;</td>
</tr>
<tr>
<td align="left" valign="top">Which method stubs would you like to create?</td>
<td align="left" valign="top">
<p>Choose the method stubs to create in this class:</p>
<ul>
<li>public static void main(String [] args): Adds a main method stub to the new class.</li>
<li>Constructors from superclass: Copies the constructors from the new class's superclass and adds these stubs to the new class.</li>
<li>Inherited abstract methods: Adds to the new class stubs of any abstract methods from superclasses or methods of interfaces that need to be implemented.</li>
</ul>
</td>
<td align="left" valign="top">Inherited abstract methods enabled</td>
</tr>
</table>
<p><img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br>
<a href="../tasks/tasks-17.htm">Creating a new Java class</a><br>
<a href="../reference/ref-menu-file.htm">File actions</a></p>
<p>
<a href="../notices.html"><img src="../cpy.gif" border="0" alt="Legal notices" width="324" height="14"></a>
</p>
</body>
</html>