Opening an editor for a selected element

You can select the name of a type, method, or field in the Java source editor or in the scrapbook and open an editor on the definition of the element.

  1. In the Java editor, select the name of a type, method, or field.

  2. Do one of the following:

    • From the menu bar, select Navigate > Open Declaration

    • From the editor's pop-up menu, select Open Declaration

    • Press F3

If there are multiple definitions of the same name, a dialog is shown, and you can select one definition that you want to open. An editor opens containing the selected element.

Related concepts

Java editor

Related tasks

Using the Java editor

Related reference

Navigate menu
Views and editors

Legal notices