Does anyone know where I can download the javadoc files for Swt and/or JFace?
I do not want the api docs for the rest of Eclipse. I found a place where the docs are available for reading online but I really need them on my local computer.
To see the javadoc of a class having attached source in eclipse: select Window -> show view -> javadoc (or alt + shift + q, j). then in the javadoc view, right click -> open attached javadoc (or shift + F2), this will display the javadoc of the class in the internal browser of eclipse.
You can download the Eclipse Classic Package corresponding to your SWT / JFace versions from here: http://www.eclipse.org/downloads/ and then once unzipped and launched, just go to the Help -> Help Contents and then Platform Plugin Developer Guid, Reference, API Reference.
If you really need the html files, they are located in the plugins folder of your Eclipse SDK installation in the org.eclipse.platform.doc.isv_XXXX.jar file. If you open this file with 7Zip for example you will find the SWT Javadoc under: reference\api\org\eclipse\swt
I think it's the only way to get these html files
Download the SWT version you want, for the platform you're using, from the SWT download page.
Extract the zip file to a directory.
In the directory, there should be another zip file called src.zip. Extract that to another directory.
Delete any packages you don't want the javadocs for.
Use the javadoc utility that comes with the JDK to build the javadocs.
You only really need to do steps 3 to 5 if you're really low on disc space (which one hopes you're not, if it's your dev box!). A lot of IDEs, including Eclipse itself, will quite happily work with src.zip.
e.g. I copied src.zip to $MY_ECLIPSE_INSTALLATION_PATH/plugins/swt-4.2.2-gtk-linux-src.zip, and told Eclipse to look there for the SWT source. I now have easy access to the SWT javadocs (Eclipse creates them on the fly when I mouse over a SWT class name), so I no longer have to stumble around help.eclipse.org and its blasted <title>
-hiding frames.
No need to download externally. Install the 'Eclipse SDK' if you want JavaDoc for everything(including plugins) installed in Eclipse. The update site for this is download.eclipse.org/eclipse/updates/4.4. (this is for eclipse juno. for kepler use version number 4.3 instead of 4.4). Go to Help>Install New Software> and give the above url for "work with" section. Then u will see the Eclipse sdk and u can install it. After installing it, after restarting eclipse all the docs support will be visible on your editor whenever u hover mouse on a special word. Trust me this is the easiest and 100% correct method. And installing this will configure the javadoc path for "org.eclipse.swt.gtk.linux.x86_64_3.102.1.v20140206-1358.jar" and "org.eclipse.swt_3.102.1.v20140206-1334.jar" which are visible in plugin dependencies of the project structure appropriately. The javadoc is actually modified at PATH_TO_ECLIPSE_FOLDER\eclipse\plugins\org.eclipse.platform.doc.isv_4.3.0.v20130606-0003.jar in reference/api
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With