Eclipse Import JDK Source code
Preface: The importance of this matter is self-evident, for learning and observing excellent code is very useful, I like to see what code can be ctrl + Mouse point can be seen, but this does not often operate, here small remember a pen, for later use. (Completely is a fool type of record, is afraid oneself also need to go back and forth to find the operation step!) )
1:window--preferences
2:java--installed jres--The Jdk--edit used for the selected item
3: Check Rt.jar--source Attachment
4: Click External File
5: Find the source of your JDK, import eclipse
6:ok, click OK, Finish the call
7: View the referenced class | | interface | | Method of source Code method
Method One: Right-click in the Class | | interface | | Method Name, select Open Declaration, you can enter the source code.
Method Two: Right-click in the Class | | interface | | Method name, directly press the F3 key, you can enter the source code.
Method Three: Always hold down the CTRL key, and then click Class | | interface | | Method name, you can enter the source code. (I prefer this mode of operation)
Eclipse Import Source for JDK