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 153121 - No code completion for loop labels ("labeled break/continue")
Summary: No code completion for loop labels ("labeled break/continue")
Status: RESOLVED DUPLICATE of bug 149781
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-13 07:59 UTC by kimsp
Modified: 2008-11-13 16:54 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 kimsp 2008-11-13 07:59:24 UTC
No tab completion for loop labels. Please see the following code:

public class Main {

    public static void main(String[] args) {
        int[] x = {1, 2, 3, 4, 5};
        char[] y = {'a', 'b', 'c'};
        outerfor:
        for (int i = 0; i < x.length; i++) {
            System.out.println("---------------");
            innerfor:
            for (int j = 0; j < y.length; j++) {
                char c = y[j];
                System.out.println(c);
                if (c == 'b') {
                    System.out.println("break");
                    break <I WOULD LIKE TO TAB COMPLETE HERE>;
                }
            }
        }
    }
}
Comment 1 kimsp 2008-11-13 09:04:32 UTC
tab completion be understood as code completion, in stuck in old lingo :)
Comment 2 Petr Dvorak 2008-11-13 16:13:03 UTC
I think this is not a defect, it is more an enhancement. The same could be done for continue...
Comment 3 Jiri Prox 2008-11-13 16:54:11 UTC

*** This issue has been marked as a duplicate of 149781 ***