Motivation:
always, if you wanna check/analyze source code or do some contribution in open
source communities, you would like to download the source code of some
projects and load (or import) it into your own IDE. (if you don't wanna use CVS or SVN)
Following is my favorite way to do that under Eclipse:
1. create a new blank Java project:
File -> New -> Project ... -> Java Project --> Next
>> -> input the project name (project layout: Create seperate
source and output folders) --> click Finish
2. right click Source Folder "src" --> import ... -> select File
system -> choose correct source code folder where you put the
downloaded source code by click the top "Browse..." button (source code
folder means the root folder thus can keep folder structure as
package structure) --> Finish
3. if you import wrong source code folder, you can delete whole project
to redo. (it is no use merely deleting some failed packages)
Note:
if there is Ant build file (some stuff like build.xml) included in
source code package, that will be cool, just using File -> New ->
Project... -> Java Project from Existing Ant Buildfile.