1. Analyzing inheritance relationships for Java classes and interfaces
Specific practices:
Select the desired class and interface definition in the code area, then right-click and select "Open Type hiberarchy" To see the inheritance relationship in "Hiberarchy View"
Shortcut key: "F4"
2. Parsing the call relationships of Java methods
Select the appropriate method definition in the code area, then right-click, select "Open call Hierachy", you can see the calling relationship of the method in the calls Hiberachy view, which provides a layer-by-layer method call traceability function, which is useful for finding the method's mutual invocation relationship.
Shortcut keys: "Ctrl + Alt + H"
3. Using the search function
Use "Search" on the menu to open the Search dialog box, and the search results are displayed in "Search View". by double-clicking on an item in the search results list in the "Searching View", you can open the source of the search result directly in the view, which is convenient to use.
4. Search for a class
Use the shortcut key "Ctrl + Shift + R" To view the source code for a class.
5. In-page search
Using the shortcut key "Ctrl + F", you can search for code in this page to find out where this code appears on this page.
Eclipse_ common techniques _02_ using Eclipse for source analysis