Sometimes it is to look at the source code of a particular software, but this code is not open source. Perhaps for some development convenience, the software opens up some Java source code as a reference, but the other parts are encapsulated so that they cannot see the full project. This way, if a file of a file to see, can not compile, and related library functions, the call between the class can not jump to find.
So, the first thing to think about is to create a new project, to copy the file code one by one. However, if it is a very large project, the document is particularly much, it is particularly troublesome.
By chance, I found that directly to the source code folder directly into their own new project in the source folder, you can automatically add it, so that you save a file of a file a new process, very convenient.
The specific steps are:
1. New Project
2. Unfold the project and see src This source folder
3. Drag the source code folder directly into SRC
So it's done.
Add Java source code files/folders that are not part of the project in eclipse