Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Java Development User Guide
Previous Page Home Next Page

Navigate to a Java element's declaration

In this section, you will learn how to open a type in the Java Editor and how to navigate to related types and members.

  1. Open the Open Type dialog by pressing Ctrl+Shift+T, choosing Navigate > Open Type..., or clicking the toolbar icon (Open Type toolbar button). Type Money, press the Arrow Down key a few times to select MoneyTest, and then press Enter to open the type in the Java editor.

    Open Type dialog

  2. On the first line of the MoneyTest class declaration, select the superclass TestCase and either
    • from the menu bar select Navigate > Open Declaration or
    • press F3.

    Menu open declaration

    The TestCase class opens in the editor area and is also represented in the Outline view.
    Note: This command also works on methods and fields.

    Opened declaration

  3. With the editor open and the class declaration selected:
    • from the menu bar select Navigate > Open Type Hierarchy or
    • press F4.

    Menu open type hierarchy

  4. The Hierarchy view opens with the TestCase class displayed.

    Type hierarchy view

    Note: You can also open editors on types and methods in the Hierarchy view.

Related tasks

Opening an editor for a selected element

Related reference

Type Hierarchy View

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire