Can I control where Eclipse gets its popup javadoc?

I have two Eclipse Java projects that contain different versions of the same classes (don't ask :-)). Classes come in the same packages in every project. I would like that when I hover over a method definition in one project, the popup javadoc I see is the javadoc from a method version in another project.

In Eclipse, I have no control over this. I can customize the location of the "external javadoc" of the project (which is displayed on change-F2) and that works fine. But it doesn't affect the popup javadoc.

Is there a way to achieve what I want?

Additional information: Code is a library. One of the projects contains the api library with which clients are compiled - all methods just throw an exception. Another project implements a library implementation that clients never see. The api is documented with javadoc in the api project and I don't want to duplicate these comments in the implementation. But it would be convenient to see these comments when editing the implementation.

+3


source to share


1 answer


I would like that when I hover a method definition in one project the popup javadoc I see is the javadoc from the method version in another project.

It doesn't look right. You want to see Javadoc from another project, but the actual method call will continue to refer to a method from the same project.

To see the Javadoc from another project, you need to make sure that your method call also references a method declaration in another project.



EDIT:

I don't want to duplicate these comments in the implementation

You can use @see tags in javadoc. This results in a simple selection of javadoc from the specified method in the @see tag.

0


source







All Articles