Java Source Attacher 1.2.4

Bookmark and Share
Update site

Add this URL to your Eclipse Installation to reach this Solution's Update Site.
Learn more...

Details Group Tabs

Reviews

Login  to post comments.

Worked very well for me!

I just installed this plugin in a Kepler Eclipse and asked it to attach the source for one of the core Eclipse plugins so that I could see how it worked. Plugin sources no longer seem to be included in Eclipse releases, and I had been very frustrated trying to find them. But this Attacher found them automatically, downloaded and attached them in a few minutes.

Worked like a charm. I can't speak for other Open Source jars, but for Eclipse plugin sources, it was exactly what I needed.

It didnt work

It didnt work for me when I tried to attach gson-2.2.4-sources.jar to gson-2.2.4.jar
No error message, nothing happened.

Option not enabled in sub folder Web-inf/lib or Navigator view

Thank you for this lovely tool! However, the option to 'Attach Java source' is grayed out for libraries that are in a different folder like say src/webroot/web-inf/lib. Also this option is grayed out when I try accessing it from the Navigator view, it's available in the Project Explorer view though. It would be nice if it can be activated for arbitrary libraries and in Navigator.

You must have the jar in the Build path of project first

Submitted by Thai Ha on

You must have the jar in the Build path of project first, the plugin cannot attach source code for any jar files not in project's Build Path.

This plugin can attach source code for Android libraries - how ?

You say in the description :

Note for Android developers:
- When programming Android projects using Google ADT plugin, the jar files inside libs folder will be added as libraries automatically but Eclipse will not allow change source code path for these libraries. This plugin can attach source code for Android libraries and will help Android developers in coding / debugging.

Now I installed your pluggin (kepler eclipse release) but I find no way of attaching the source - can I provide a file/folder URL to the my library project in the workspace ?

Please help, if this really solved the (very annoying issue) with ADT I will be sure to advertise !

Eclipse Java EE IDE for Web Developers.
Version: Kepler Release
Build id: 20130614-0229

To attach java source to jar files

Submitted by Thai Ha on

In Package Explorer view, expand "Referenced Libraries" of your Java project, right click on your jar file(s), choose the menu "Attach java Source". That's it.

Bug?

I tried installing it to the developer preview 4.3 M6 and it made all right-clicking stop working. I didn't receive any exception.

Works on Kepler 4.3

Submitted by Thai Ha on

Tested today with Eclipse SDK Kepler (version 4.3). It works correctly.

Is there a way to correct the

Is there a way to correct the database when it attaches the wrong source jar? The plugin keeps trying to attach the jcommander source to the testng library.

Sorry but there is no way to remove wrong links

Submitted by Thai Ha on

Sorry but there is no way to remove wrong links, could you give me the name+version or the md5 of the jar file? I will search and remove it from database

where does this copy the source jar that it downloads?

where does this copy the source jar that it downloads?

Source code location for the plugin

Submitted by Thai Ha on

Source code location for the plugin is /.sourceattacher/

not working for me..

Submitted by ejaenv on

i tried axis.jar and commons-beanutils.jar with eclipe 3.6
I select the "Attach source file" option, and after doing this, I click on a class file but eclipse says "source not found"

There are several libraries which are not easy to find source

Submitted by Thai Ha on

There are some libraries which are not easy to find the source code automatically because it is not in our database yet. For these cases, you can help by providing the URL of the source code bundle (in zip or jar format) and the database will save the URL. Next time, you or other users will find the source code automatically.