This discussion is archived
3 Replies Latest reply: Oct 30, 2009 10:40 AM by thomas.behr RSS

link to a class

843810 Newbie
Currently Being Moderated
hello,
I'm trying to link to a another class from within a class.
I'm using eclipse.
/**
 * Class Map: A composition of  {@link <FullClassName> [Display Text]}
 * 
 * @see 
 * 
 * @author Ralph
 * @since 1.0.0
 */
I'm using the syntax at line 2. I absolutely have no idea why it is not working.

thanks in advance.
  • 1. Re: link to a class
    thomas.behr Newbie
    Currently Being Moderated
    Well, in which way does it not work?
    What does the link argument look like exactly?
    What error or warning messages do you get?
  • 2. Re: link to a class
    843810 Newbie
    Currently Being Moderated
    this is my full class name :

    @soen.adventure.game.Room

    the thing is that in eclipse before typing the link you want he will list you all the possible values, be he is not listing the link to class Room !!!

    well i have no error but when i generate the javadoc no link appears.

    Thank you !
  • 3. Re: link to a class
    thomas.behr Newbie
    Currently Being Moderated
    ralfph wrote:
    this is my full class name :

    @soen.adventure.game.Room
    You mean
    soen.adventure.game.Room
    without the leading @ character, right?

    ralfph wrote:
    the thing is that in eclipse before typing the link you want he will list you all the possible values, be he is not listing the link to class Room !!!

    well i have no error but when i generate the javadoc no link appears.
    Does eclipse succeed in resolving
    soen.adventure.game.Room
    in-code (try it using the qualified name)?
    If not, there is no type by that name. Either you mispelled something or your eclipse project is not set up properly.

    Be sure that your spelling is correct and that you are using a valid JavaDoc tag at a valid place.
    /**
     * @see soen.adventure.game.Room
     */
    will work if there is a class by that name!

    I still think you should run Javadoc from commandline and check its output (errors and warnings both).

    See [http://java.sun.com/j2se/javadoc/] for documentation of JavaDoc.