Java editor

Toolbar actions

Toolbar Button

Command

Description

Show Source of Selected Element Only

Show Source of Selected Element Only

This button enabled display of a segmented view of the source of a compilation unit.

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

Go to Next Problem

This command navigates to the next problem marker in the active editor.

Go to Previous Problem

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 > General > 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.

Related concepts

Java editor

Related tasks

Opening an editor for a selected element

Related reference

Java outline
Java editor preferences
JDT actions
Views and editors