This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37691 - Suggest code completion for {@link ...}
Summary: Suggest code completion for {@link ...}
Status: RESOLVED DUPLICATE of bug 98853
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 2 votes (vote)
Assignee: issues@editor
URL:
Keywords:
: 60532 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-03 05:35 UTC by Jesse Glick
Modified: 2015-09-04 06:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2003-12-03 05:35:38 UTC
I find myself writing a lot of {@link ...} tags
into Javadoc. It can be annoying to have to type
out (and remember) the full class and member name,
when code completion works fine in normal code.
Perhaps within Javadoc comments this tag - which
refers to other classes or members - could get
completion from the regular parser database. E.g.

package a;
public class A {
    public int x;
    public void foo() {}
}
package b;
import a.*;
public class B {
    public int y;
    protected void bar(int i) {}
    protected void bar(boolean b) {}
    /** Comment.. <<CARET>> */
    public void whatever() {}
}

At the marked point, typing

    {@link <<CARET>>

could offer completions:

    #whatever
    #bar(int)
    #bar(boolean)
    #y
    B
    A
    A#x
    A#foo
    java.util.Collections#singleton

etc. Basically the same things that regular code
completion would offer you, but with a somewhat
different syntax.

@see could work the same way, assuming you did not
begin the body with '"' or '<' which begin a
different syntax.
Comment 1 psuk 2004-03-23 19:15:48 UTC
Changing subcomponent to "code completion"

Comment 2 mikeskells 2005-06-27 10:40:41 UTC
similar to http://www.netbeans.org/issues/show_bug.cgi?id=60532
Comment 3 Jesse Glick 2005-06-27 16:24:50 UTC
*** Issue 60532 has been marked as a duplicate of this issue. ***
Comment 4 Jan Pokorsky 2008-02-12 17:38:24 UTC

*** This issue has been marked as a duplicate of 98853 ***
Comment 5 ytn01 2015-09-04 02:55:14 UTC
Completion for entries such as  {@link File#  is not working when java.io.File isn't already imported.
According to the current JavaDoc editor test case, This should open completion dialog, suggesting choice of "File" class to import.
Comment 6 Jiri Prox 2015-09-04 06:23:31 UTC

*** This bug has been marked as a duplicate of bug 98853 ***