Java editor
Toolbar actions
Command
Description
Show Source of Selected Element Only
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.
For example, if a method is selected in the Outline view, the Show Source Of Selected Element Only option causes only that method to be displayed in the editor, as opposed to the entire class.
- Off:
- The entire compilation unit is displayed in the editor, with the selected Java element highlighted in the marker bar with a range indicator.
- On:
- Only the selected Java element is displayed in the editor, which is linked to the selection in the Outline or Hierarchy view.
Go to Next Problem
This command navigates to the next problem marker in the active editor.
Go to Previous Problem
This command navigates to the previous problem marker in the active editor.
Key binding actions
The following actions can only be reached through key bindings. The Key bindings field in Window > Preferences > Workbench > Keys must be set to 'Emacs'.
Key binding
Description
Alt+0 Ctrl+K, Esc 0 Ctrl+K
Deletes from the cursor position to the beginning of the line.
Ctrl+K
Deletes from the cursor position to the end of the line.
Ctrl+Space, Ctrl+2
Sets a mark at the current cursor position.
Ctrl+X Ctrl+X
Swaps the cursor and mark position if any.
Using the Java editor
Viewing documentation and information
Showing single elements or whole Java files
Opening an editor for a selected element
Outline view for Java Java editor preferences JDT actions Views and editors