| <!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"> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| |
| <title>Java editor</title> |
| </head> |
| |
| <body> |
| <h1>Java editor</h1> |
| |
| <p>The Java editor provides specialized features for editing Java code.</p> |
| |
| <p>Associated with the editor is a Java-specific Outline view, which shows the structure of the active Java compilation unit. |
| It is updated as the user edits the compilation unit.</p> |
| |
| <p>The Java editor can be opened on binary CLASS files. |
| If a JAR file containing the CLASS files has a source attachment, |
| then the editor shows the corresponding source.</p> |
| |
| <p>The editor includes the following features:</p> |
| |
| <ul> |
| <li>Syntax highlighting</li> |
| |
| <li>Content/code assist</li> |
| |
| <li>Code formatting</li> |
| |
| <li>Import assistance</li> |
| |
| <li>Quick fix</li> |
| |
| <li>Integrated debugging features</li> |
| </ul> |
| |
| <p>The Java editor can be configured to either show an entire compilation unit or a single Java element only. |
| To change the setting, use the toolbar button <span class="control">Show Source of Selected Element Only</span>. |
| </p> |
| |
| <p>The most common way to invoke the Java editor is to open a Java file from |
| the Navigator or Package explorer using pop-up menus or by clicking the file |
| (single or double-click depending on the user preferences). You can |
| also open the editor by opening Java elements, such as types, methods, or |
| fields, from other views.</p> |
| |
| <p><img src="../images/ngrelc.png" alt="Related concepts" border="0"></p> |
| <p> |
| <a href="../concepts/concepts-1.htm">Java development tools (JDT)</a></p> |
| |
| <p><img border="0" src="../images/ngrelt.png" alt="Related tasks"></p> |
| <p> |
| <a href="../tasks/tasks-73.htm">Opening an editor for a selected element</a><br> |
| <a href="../tasks/tasks-54.htm">Using the Java editor</a><br> |
| <a href="../tasks/tasks-65.htm">Using content/code assist</a><br> |
| <a href="../tasks/tasks-66.htm">Formatting Java code</a><br> |
| <a href="../tasks/tasks-59.htm">Adding required import statements</a><br> |
| <a href="../tasks/tasks-57.htm">Generating getters and setters</a><br> |
| <a href="../tasks/tasks-107.htm">Viewing compilation errors and warnings</a><br> |
| <a href="../tasks/tasks-156.htm">Viewing runtime exceptions</a><br> |
| <a href="../tasks/tasks-138.htm">Evaluating expressions</a><br> |
| </p> |
| |
| <p><img border="0" src="../images/ngrelr.png" alt="Related reference"></p> |
| <p> |
| <a href="../reference/ref-java-editor.htm">Java editor actions</a><br> |
| <a href="../reference/ref-21.htm">Java editor preferences</a><br> |
| <a href="../reference/ref-view-outline.htm">Java outline</a><br> |
| <a href="../reference/views/ref-viewsandeditors.htm">Views and editors</a> |
| </p> |
| |
| |
| </body> |
| </html> |
| |