# Opening a type hierarchy on the current text selection

To open a type hierarchy on a text selection, select the name of a Java element in the editor, and do one of the following:

- Press F4
- select Open Type Hierarchy from the editor's pop-up menu
- select Navigate > Open Type Hierarchy from the menu bar

Note: If the selected Java element (or editor selection) is not a type or a compilation unit, the hierarchy opens on the type enclosing the current selection.

Java editor

Using the Hierarchy view
Changing new type hierarchy defaults
Changing the appearance of the Hierarchy view
Opening a type hierarchy on a Java element
Opening a type hierarchy in the workbench
Opening a type hierarchy in its own perspective

Views and editors
Type Hierarchy view
Edit menu