| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//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"> |
| <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> |
| Show Source of Selected Element Only |
| </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> |
| Go to Next Problem |
| </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> |
| Go to Previous Problem |
| </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 > General > |
| 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.png" alt="Related concepts" border="0" ></p> |
| <p> |
| <a href="../concepts/concepts-7.htm">Java editor</a> |
| </p> |
| <p> |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" > |
| </p> |
| <p> |
| <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> |
| </p> |
| <p> |
| <img src="../images/ngrelr.png" alt="Related reference"></p> |
| <p> |
| <a href="../reference/ref-view-outline.htm">Java outline</a><br> |
| <a href="../reference/ref-21.htm">Java editor preferences</a><br> |
| <a href="../reference/ref-2.htm">JDT actions</a><br> |
| <a href="views/ref-viewsandeditors.htm">Views and editors</a> |
| </p> |
| |
| </body> |
| </html> |
| |