Eclipse_ common techniques _02_ using Eclipse for source analysis

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.