Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Eclipse Navigate Menu

Eclipse Navigate Menu

Browsing the Eclipse workspace

The Navigate menu provides several menus that let you quickly locate specified resources.

In the figure above, the three menu items Open Type, Open Type in Hierarchy, and Open Resource are very useful.

Open Type

The Open Type menu item opens a dialog in which you can search for Java type files.

You can type a class name in the input box to search. The '*' symbol represents zero or more letters, and the '?' symbol represents a single letter and can be used to specify a pattern. The dialog will display all matching patterns.

Simply select the file you are looking for from the list.

Eclipse will open an editor displaying the selected type. If the source code cannot be displayed for the selected type, the class file editor will be used to show the bytecode of the selected type.

You can click the Attach Source button to view the source code corresponding to the class file.

The source code is located in the src.zip archive file in the Java home directory.

Open Type in Hierarchy

The Open Type in Hierarchy menu allows users to view the inheritance hierarchy of a class in the Type Hierarchy view.

In the Type Hierarchy view, selecting a specified class shows the class's definition information, including its corresponding properties and methods:

Open Resource

The open resource menu can be used to find files in the workspace.

The '*' symbol represents zero or more letters, and the '?' symbol represents a single letter and can be used to specify a pattern. The dialog will display all matching patterns.

Select the file you want to open and click the OK button.