Marius
Marius

Reputation: 980

Eclipse: add javadoc

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. I've read this article How to add hibernate javadocs in Eclipse? but I don't want to get hibernate tools because I already use STS and I don't understand the other comment.

I'm using eclipse on Ubuntu.

Upvotes: 10

Views: 22036

Answers (6)

luskwater
luskwater

Reputation: 300

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.

Upvotes: 2

bcarroll
bcarroll

Reputation: 1818

Try viewing the properties of your project to add a JavaDoc Location. enter image description here

Upvotes: 0

Matthew Cachia
Matthew Cachia

Reputation: 4692

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).

Upvotes: 3

ptyx
ptyx

Reputation: 4164

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.

Upvotes: 7

Marcelo
Marcelo

Reputation: 11308

I am using Eclipse Helios x64 in Windows 7 x64.

In your project properties:

Project Properties

Upvotes: 26

JB Nizet
JB Nizet

Reputation: 691635

Right-click on the hibernate jar in the package explorer, then choose "Properties", and fill the "javadoc location" field.

enter image description here

Upvotes: 1

Related Questions