Eclipse tutoria...login
Eclipse tutorial
author:php.cn  update time:2022-04-13 14:09:28

Eclipse Navigate menu


Browse Eclipse workspace

The Navigate menu provides multiple menus that allow you to quickly locate specified resources.

navigation_menu

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

Open Type

The Open Type menu item opens a dialog box in which Java type files can be found.

You can enter the class name in the input box to search. The '*' sign indicates 0 or more letters, and the '?' sign indicates that a single letter can be used to specify the pattern. All matching patterns will be displayed in the dialog box.

navigation_open_type

Just select the file you are looking for in the list.

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

navigation_class_editor

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 compressed file in the Java home directory.

Open Type in Hierarchy

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

navigation_oth

Select the specified class in the Type Hierarchy view to see the definition information of the class, including the corresponding attributes and methods:

navigation_thv

Open Resource

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

The '*' sign indicates 0 or more letters, and the '?' sign indicates that a single letter can be used in the specified pattern. All matching patterns will be displayed in the dialog box.

navigation_open_res

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

php.cn