maxada
maxada

Reputation: 1

Java Eclipse: Read the code of a class imported from a library

I'm working in a project environment Eclipse Luna Service Release 2 (4.4.2) in which I am using classes imported from some libraries. Currently I have to build a class diagram of the work done so far and to do that, I'm using the "ObjectAid Explorer Eclipse UML plugin" without problems. Unfortunately I can not create it anyway integrating relationships to classes imported and then I was planning to re-create them in a package so that you can create this class diagram. How can I read the code of a class imported from a jar library? Thanks so much !

Upvotes: 0

Views: 549

Answers (1)

Lefteris008
Lefteris008

Reputation: 906

If you want to read just the method signatures, inside Eclipse from Project Explorer, navigate where the .jar is located and expand it; you will be able to view the classes and their methods.

If however you want to read the entire code of every class, you need the .jar that attaches the sources on it. Developers usually package a Java Project without the sources files and create separate JARs that contain them. Look for the a JAR named <library_name>-src.jar.

Upvotes: 1

Related Questions