Alex Rivera | Logout

Writing a comment in Eclipse linking a specific line

Asked 2013-02-21T11:45:42.000
11

i'm working with Eclipse in Java and with long long classes i need a feature like this: in the top comment of a method (for example) there is a list of operations executed by the method. For each operation listed, i'd like to "hyperlink" a portion of the comment to a specific line of the related code.

Then using Ctrl+Click to that line i can jump directly to the specified line code.

Is it possible an operation like this?

Thanks

Edit
Report

1 Answer

2

You can use the JavaDoc @see tag:

/**
* @see MyClass#myMethod()
*/

This generates a hyperlink in your JavaDoc.

SRC: method-linking-anchoring-in-java

answered 2013-02-21T11:53:26.820

Your Answer