How can I generally add javadoc in eclipse for different packages.
As an example:
I want to add all the javadoc for hibernate in eclipse, but I don\'t know how.
Another option is to use maven/m2eclipse to manage your dependencies.
It's way overkill if you have the problem for 1 or 2 libraries, but worth considering if you have a dozen.
Most open source projects publish both the jar and the -src.jar artifacts, and m2eclipse can go and download automatically the source for you.
Right-click on the hibernate jar in the package explorer, then choose "Properties", and fill the "javadoc location" field.
Try viewing the properties of your project to add a JavaDoc Location.
In Eclipse Kepler (some years after the question, admittedly), there's a Download JavaDoc entry on the Maven submenu. This just downloaded the Spring JavaDoc (and the status message said "Downloading Javadoc and sources", but I haven't checked that). (There's also a Download Sources entry on that submenu.)
Hope this helps.
I am using Eclipse Helios x64 in Windows 7 x64.
In your project properties:
Run
mvn eclipse:eclipse -DdownloadJavadocs=true -DdownloadSources=true
and refresh your eclipse module. Voila! No need for any eclipse plugins (unless you are already using them).