How to quickly view the class source code in the jar package in Eclipse, eclipsejar
When we check the jar source code, we usually install a jd-gui, copy the jar, open the jar from the jd-gui, and then view the source code. This process is troublesome, of course, the quick view method described in this article does not have any high-tech means. It just integrates jd-gui into Eclipse, and then you can directly open the class in Eclipse, this will not only facilitate the operation but also save a lot of time. Specific steps:
Download Plugin: jd-eclipse-site-1.0.0-RC2.zip
Open Eclipse --> Help --> Install New Software:
Name the plug-in the Name box, click Archive, select the downloaded plug-in, and click OK:
, Select the plug-in (because I have already installed the plug-in, so the display style is not the same), do not select the checkbox below, directly next --> finish.
Okay. Find a jar package and open the class file for testing:
Alternatively, you can press Ctrl + the left mouse button in your java file and click the parent class (SDK) You inherit to view the source code:
Activity source code: