blob: ab407b08b6326e76f22615b08a67c22569432ec1 [file] [log] [blame]
<!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 enum
</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 enum
</h1>
<p>
Use the
<a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewEnumCreationWizard)")'>
<img src="PLUGINS_ROOT/org.eclipse.help/command_link.png">
<strong>New Java Enum</strong></a> wizard
to create a new Java enum. There are a number of ways to open this wizard:
</p>
<ol>
<li>
Select the container where you want the new enum to reside.
</li>
<li>
Click the <strong>New Java Enum</strong> button in the workbench toolbar.
</li>
</ol>
<p>
or
</p>
<ol>
<li>
Select the container where you want the new enum to reside.
</li>
<li>
From the container's pop-up menu, select <strong>New</strong> &gt; <strong>Enum</strong>.
</li>
</ol>
<p>
or
</p>
<ol start="1" type="1">
<li>
Select the container where you want the new enum to reside.
</li>
<li>
From the drop-down menu on the <strong>New</strong> button in the workbench toolbar, select <strong>Enum</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>Java &gt; Enum</strong> and click <strong>Next</strong>.
</li>
</ol>
<p>
or
</p>
<ol>
<li>
Select the container where you want the new enum to reside.
</li>
<li>
Then, select from the menu bar <strong>File</strong> &gt; <strong>New</strong> &gt; <strong>Enum</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-94.htm">Renaming a type</a>
</p>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-126b.htm">New Java Enum wizard</a><br>
<a href="../reference/ref-3.htm">Java Toolbar actions</a><br>
<a href="../reference/ref-view-package-explorer.htm">Package Explorer</a>
</p>
</body>
</html>