![]() |
< Day Day Up > |
![]() |
2.3 Creating JavadocEclipse also makes it easy to develop Javadoc documentation, the standard Java documentation that accompanies Java programs. You'll notice that in the code it generates, Eclipse inserts some text for Javadoc, as you see in Ch02_05.java: package org.eclipsebook.ch02; /** * @author Steven Holzner * * To change the template for this generated type comment go to * Window>Preferences>Java>Code Generation>Code and Comments */ . . . If you want to enter your own Javadoc, code assist helps you here, too; for example, if you enter @param and invoke code assist with Ctrl+Space, code assist will list the parameters a method takes. Typing @exception and using code assist will list the exceptions a method throws, and so on. Typing @ in a comment and pausing will make code assist display the Javadoc possibilities, like @author, @deprecated, and so on.
To
generate Javadoc from your code, select the Project Figure 2-19. Browsing Javadoc![]() |
![]() |
< Day Day Up > |
![]() |