| Summary: | [hovering] Javadoc should be more agile about javadoc for inherited classes. | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dave Dyer <ddyer> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | daniel_megert, deepakazad |
| Version: | 3.6 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows Server 2003 | ||
| Whiteboard: | |||
|
Description
Dave Dyer
The Eclipse SDK does not include a Javadoc search. Please report the bug to the provider of Javadoc search. Or do you refer to the Javadoc shown in the hovers? If so, please provide a complete test case and reopen this bug. I refer to the javadoc lookup I get when I hit F2, but the "hover" javadoc ought to get it too. What I do get is the method skeleton, but not the corresponding javadoc. (In reply to comment #3) > I refer to the javadoc lookup I get when I hit F2, but the "hover" javadoc > ought to get it too. What I do get is the method skeleton, but not the > corresponding javadoc. Can you please provide a code snippet? It works for me with the following snippet. package p; class A { /** * it does something */ void b() { } } class C extends A { void b() { } public static void main(String[] args) { C c=new C(); c.b(); // select b and press F2 } } import java.awt.Menu;
public class test {
public void m()
{
Menu aa = new Menu("foo");
aa.add(
}
}
aa.add( and hover suggests an argument list, but never shows
javadoc; and if I highlight "add" and hit F2, I get "no page" for
test.html, which is not useful.
If I close the parens (creating an invalid but complete function call,
I get the javadoc for Menu, which is what I hope to see from hovering.
and F2, without closing the paren (I knew "no arguments" was incorrect).
This behavior is expected: The problem is that until the arguments are there, we don't know which method is meant: you first have to choose either by adding the arguments manually or by using content assist (Ctrl + Space) which will show you all the variants along with Javadoc on the right side. |