| <!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 annotation |
| </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 annotation |
| </h1> |
| <p> |
| Use the |
| <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewAnnotationCreationWizard)")'> |
| <img src="PLUGINS_ROOT/org.eclipse.help/command_link.png"> |
| <strong>New Java Annotation</strong></a> wizard |
| to create a new Java annotation. 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> |
| From the drop-down menu on the <strong>New Java Class</strong> button in the workbench toolbar, select <strong>Annotation</strong>. |
| </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>Annotation</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>Annotation</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 > Annotation</strong> and click <strong>Next</strong>. |
| </li> |
| </ol> |
| <p> |
| or |
| </p> |
| <ol> |
| <li> |
| Select the container where you want the new annotation to reside. |
| </li> |
| <li> |
| Then, select from the menu bar <strong>File</strong> > <strong>New</strong> > <strong>Annotation</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-127b.htm">New Java Annotation 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> |
| |