| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
| <title> | |
| Java editor | |
| </title> | |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> | |
| </head> | |
| <body> | |
| <h1> | |
| Java editor | |
| </h1> | |
| <h2 class="Head"> | |
| Toolbar actions | |
| </h2> | |
| <table border="1" cellspacing="0" cellpadding="5" width="100%"> | |
| <thead> | |
| <tr> | |
| <th> | |
| <p> | |
| Command | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Description | |
| </p> | |
| </th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <strong>Show Source of Selected Element Only</strong> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This option can be toggled to display a segmented view of the source of the selected Java element. This button applies to the currently-active editor and to all | |
| editors opened in the future; other currently-open editors are not affected. | |
| </p> | |
| <p> | |
| For example, if a method is selected in the Outline view, the <strong>Show Source Of Selected Element Only</strong> option causes only that method to be displayed in | |
| the editor, as opposed to the entire class. | |
| </p> | |
| <dl> | |
| <dt> | |
| <strong>Off</strong>: | |
| </dt> | |
| <dd> | |
| The entire compilation unit is displayed in the editor, with the selected Java element highlighted in the marker bar with a range indicator. | |
| </dd> | |
| <dt> | |
| <strong>On</strong>: | |
| </dt> | |
| <dd> | |
| Only the selected Java element is displayed in the editor, which is linked to the selection in the Outline or Hierarchy view. | |
| </dd> | |
| </dl> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <strong>Go to Next Problem</strong> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This command navigates to the next problem marker in the active editor. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <strong>Go to Previous Problem</strong> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This command navigates to the previous problem marker in the active editor. | |
| </p> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <h2 class="Head"> | |
| Key binding actions | |
| </h2> | |
| <p> | |
| The following actions can only be reached through key bindings. The <strong>Key bindings</strong> field in <strong>Window > Preferences > Workbench > | |
| Keys </strong> must be set to 'Emacs'. | |
| </p> | |
| <table border="1" cellspacing="0" cellpadding="5" width="100%"> | |
| <thead> | |
| <tr> | |
| <th> | |
| <p> | |
| Key binding | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Description | |
| </p> | |
| </th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <kbd>Alt</kbd>+<kbd>0</kbd> <kbd>Ctrl</kbd>+<kbd>K</kbd>, <kbd>Esc</kbd> <kbd>0</kbd> <kbd>Ctrl</kbd>+<kbd>K</kbd> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Deletes from the cursor position to the beginning of the line. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <kbd>Ctrl</kbd>+<kbd>K</kbd> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Deletes from the cursor position to the end of the line. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <kbd>Ctrl</kbd>+<kbd>Space</kbd>, <kbd>Ctrl</kbd>+<kbd>2</kbd> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Sets a mark at the current cursor position. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td valign="top"> | |
| <p> | |
| <kbd>Ctrl</kbd>+<kbd>X</kbd> <kbd>Ctrl</kbd>+<kbd>X</kbd> | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Swaps the cursor and mark position if any. | |
| </p> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| <p> | |
| <img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159"><br> | |
| <a href="../concepts/concepts-7.htm">Java editor</a> | |
| </p> | |
| <p> | |
| <img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br> | |
| <a href="../tasks/tasks-54.htm">Using the Java editor</a><br> | |
| <a href="../tasks/tasks-69.htm">Viewing documentation and information</a><br> | |
| <a href="../tasks/tasks-6.htm">Showing single elements or whole Java files</a><br> | |
| <a href="../tasks/tasks-73.htm">Opening an editor for a selected element</a> <a href="../tasks/tasks-54.htm"></a> | |
| </p> | |
| <p> | |
| <img src="../images/ngrelr.gif" width=159 height=27 alt="Related reference"><br> | |
| <a href="../reference/ref-view-outline.htm">Outline view for Java</a> <a href="../reference/ref-21.htm">Java editor preferences</a> <a href="../reference/ref-2.htm">JDT | |
| actions</a> <a href="../reference/ref-24.htm">Views and editors</a> | |
| </p> | |
| <p> | |
| <a href="../hglegal2003.htm"></a><a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" | |
| width="324" height="14"></a> | |
| </p> | |
| </body> | |
| </html> | |