Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse dont have java doc to show information about class and methods. how to attach those? +android


I'm working on android under eclipse holies environment. but my eclipse not helping me to find detail about class or method while writing code.
Ex: Toast android.widget.Toast.makeText(Context context, CharSequence text, int duration)

if i mouse hover on makeText() in above statement, getting following information

Note: This element has no attached source and the Javadoc could not be found in the attached Javadoc

where and what do i need to attach?

like image 200
vnshetty Avatar asked Apr 28 '11 07:04

vnshetty


People also ask

How do I enable java documentation in Eclipse?

Step 1 − Open eclipse, select the option Project →Generate Javadoc. Step 2 − Select the javadoc.exe file from the bin folder of java installation directory, select the destination folder for the generated java doc and select Next. finish button.

Where do I find javadoc?

Click Window. Hover over Other to expand the menu. Select Javadoc to display the Javadoc window in the bottom pane. Highlight a class, method or package from WPILib.

What is java docs in eclipse?

JavaDoc tool is a document generator tool in Java programming language for generating standard documentation in HTML format. It generates API documentation. It parses the declarations ad documentation in a set of source file describing classes, methods, constructors, and fields.


1 Answers

If you have installed the ADT plugin to Eclipse then you should make sure that you download the package called something along the lines of "Documentation for Android SDK 2.2, API 8, revision 1" or whatever. Have you gone through the entire installation guide for the Android SDK as posted on the official website? http://developer.android.com/sdk/installing.html this is the one I'm talking about. It's been discussed on SO before as well: JavaDoc in an Eclipse Android Project

If you have done all this, then http://www.vogella.de/articles/Eclipse/article.html#classpath_jarjavadoc does a good job of explaining how to add Sources & Javadocs to existing Libraries in case something went wrong.

For example, this is how my Libraries path looks: Weee!

Go check and see how yours looks. Included is the location for the Javadocs normally (SDK Path/docs/reference/)

If you want to add the source code as well, see: http://android.opensourceror.org/2010/01/18/android-source/ & http://stuffthathappens.com/blog/2008/11/01/browsing-android-source-in-eclipse/

like image 158
Codemonkey Avatar answered Oct 26 '22 10:10

Codemonkey