1

When using the standard api, for example the collections library, the predictive text options windows also shows the comments on class/methods.

however when I do the same style comments on my own code - the open project I am working on (code completion works correctly, just no comments appear), and then reference it later. These comments are not displayed. I get the correct code completion options, just none of the associated comments/documentation. They are not in jar, they are source files, that are built using maven into a war file.

Is there a setting I need to enable in eclipse, or do I need to set up javadoc or something ?

NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
  • Do you have "your own" code as a dependent eclipse project (or the same project)? Or do you mean jars? – Christian Oct 07 '11 at 16:43
  • its the open project, the code compeltion works correctly - none of the comments I put on appear in the window, next to the code completion options. whereas normally you get two windows, one for code compeltion, the second then shows the comments for each method you highlight – NimChimpsky Oct 07 '11 at 16:46

2 Answers2

3

How embarassing, you to have to specify double asterix at the begininng of comment to create a javdoc comment

/**
* read the documentation before asking questions on stackoverlow
*/
NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
0

If the class is part of a jar you need to associate the javadoc jar or path. You can right click on the jar in eclipse and specify the path in the properties dialog.

gkamal
  • 20,777
  • 4
  • 60
  • 57