| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> |
| <html> |
| <head> |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. 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"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]"> |
| <title> |
| Creating a new Java class |
| </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"> </script> |
| </head> |
| <body> |
| <h1> |
| Creating a new Java class |
| </h1> |
| <p> |
| Use the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewClassCreationWizard)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png"> |
| <strong>New Java Class</strong></a> wizard |
| to create a new Java class. There are a number of ways to open this wizard: |
| </p> |
| <ol> |
| <li> |
| Select the container where you want the new class to reside. |
| </li> |
| <li> |
| Click the <strong>New Java Class</strong> button in the workbench toolbar. |
| </li> |
| </ol> |
| <p> |
| or |
| </p> |
| <ol> |
| <li> |
| Select the container where you want the new class to reside. |
| </li> |
| <li> |
| From the container's pop-up menu, select <strong>New</strong> > <strong>Class</strong>. |
| </li> |
| </ol> |
| <p> |
| or |
| </p> |
| <ol> |
| <li> |
| Select the container where you want the new class to reside. |
| </li> |
| <li> |
| From the drop-down menu on the <strong>New</strong> button in the workbench toolbar, select <strong>Class</strong>. |
| </li> |
| </ol> |
| <p> |
| or |
| </p> |
| <ol> |
| <li> |
| Click the <strong>New</strong> button in the workbench toolbar to open the <strong>New</strong> wizard. |
| </li> |
| <li> |
| Select <strong>Class</strong> or <strong>Java > Class</strong> and click <strong>Next</strong>. |
| </li> |
| </ol> |
| <p> |
| or |
| </p> |
| <ol> |
| <li> |
| Select the container where you want the new class to reside. |
| </li> |
| <li> |
| Then, select from the menu bar <strong>File</strong> > <strong>New</strong> > <strong>Class</strong>. |
| </li> |
| </ol> |
| <p> |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" > |
| </p> |
| <p> |
| <a href="../concepts/concepts-3.htm">Java projects</a> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" > |
| </p> |
| <p> |
| <a href="tasks-11.htm">Creating Java elements</a><br> |
| <a href="tasks-12.htm">Creating a new Java project</a><br> |
| <a href="tasks-18.htm">Creating a top-level class</a><br> |
| <a href="tasks-19.htm">Creating a nested class</a><br> |
| <a href="tasks-20.htm">Creating a class in an existing compilation unit</a><br> |
| <a href="tasks-executionArgs.htm">Setting execution arguments</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference" border="0" > |
| </p> |
| <p> |
| <a href="../reference/ref-121.htm">New Java Project wizard</a><br> |
| <a href="../reference/ref-128.htm">New Source Folder wizard</a><br> |
| <a href="../reference/ref-125.htm">New Java Package wizard</a><br> |
| <a href="../reference/ref-126.htm">New Java Class wizard</a><br> |
| <a href="../reference/ref-3.htm">Java Toolbar actions</a> |
| </p> |
| |
| </body> |
| </html> |
| |