| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
| <html lang="en"> | |
| <head> | |
| <meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2010. 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%" summary="Toolbar actions"> | |
| <thead> | |
| <tr> | |
| <th> | |
| <p> | |
| Toolbar Button | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Command | |
| </p> | |
| </th> | |
| <th> | |
| <p> | |
| Description | |
| </p> | |
| </th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr> | |
| <td align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.jdt.ui/etool16/toggle_breadcrumb.gif" alt="Toggle Java Editor Breadcrumb"></p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Toggle Java Editor Breadcrumb | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This button enables the Java editor breadcrumb. | |
| </p> | |
| <p> | |
| The enablement is remembered for each perspective separately. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.jdt.ui/etool16/mark_occurrences.png" alt="Toggle Mark Occurrences"></p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Toggle Mark Occurrences | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Turns <a href="../preferences/java/editor/ref-preferences-mark-occurrences.htm">mark occurrences</a> on and off in the Java editor. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.ui.workbench.texteditor/etool16/block_selection_mode.gif" alt="Toggle Block Selection Mode"></p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Toggle Block Selection Mode | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This button enables block (aka column) selection mode in the editor. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.ui.editors/etool16/show_whitespace_chars.gif" alt="Show Whitespace Characters"></p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Show Whitespace Characters | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This button enables the display of whitespace characters in an editor. | |
| </p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.jdt.ui/etool16/segment_edit.png" alt="Show Source of Selected Element Only"></p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| Show Source of Selected Element Only | |
| </p> | |
| </td> | |
| <td valign="top"> | |
| <p> | |
| This button enabled display of a segmented view of the source of a compilation unit. | |
| </p> | |
| <p> | |
| This button is only shown if you <a href="../../../org.eclipse.platform.doc.user/tasks/tasks-9k.htm">customize your perspective</a> to show the <strong>Editor Presentation</strong> actions. | |
| </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> | |
| <p> | |
| <strong>Off</strong>: | |
| The entire compilation unit is displayed in the editor, with the selected Java element highlighted in the marker bar with a range indicator.</p> | |
| <p> | |
| <strong>On</strong>: | |
| Only the selected Java element is displayed in the editor, which is linked to the selection in the Outline or Type Hierarchy view.</p> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.ui.editors/etool16/next_nav.png" alt="Go to Next Problem"></p> | |
| </td> | |
| <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 align="center" valign="top"> | |
| <p><img src="../../images/org.eclipse.ui.editors/etool16/prev_nav.png" alt="Go to Previous Problem"></p> | |
| </td> | |
| <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%" summary="Key binding actions"> | |
| <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/concept-java-editor.htm">Java editor</a> | |
| </p> | |
| <p> | |
| <img src="../../images/ngrelt.png" alt="Related tasks" border="0" > | |
| </p> | |
| <p> | |
| <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="ref-view-outline.htm">Java outline</a><br> | |
| <a href="../../reference/preferences/java/ref-preferences-editor.htm">Java editor preferences</a><br> | |
| <a href="../../reference/ref-jdt-actions.htm">JDT actions</a><br> | |
| <a href="ref-viewsandeditors.htm">Views and editors</a> | |
| </p> | |
| </body> | |
| </html> | |