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.
NetBeans IDE 7.0 Beta (Build 201011142133) Java: 1.7.0-ea; Java HotSpot(TM) Client VM 20.0-b01 Windows XP 5.1; MS932; ja_JP (nb) I tried 7.0 Beta but it happens on 6.9.1 too. I'm not sure if it's expected behavior not, I got the question from community. Please clarify. 1. Create a Java project 2. Edit a java file 3. Type "for" and CTRL+SPACE code templates around "for*" are listed on popup. "forc", "forst", "fore", "fori", "forl", "forv". 4. type "c", now "forc" on editor but Editor says "No Suggestions". "forc" is defined in code template 5. hit TAB key but it does not expand to code template When I type "forc" (without CTRL+SPACE) then hit TAB, it expands to code template. Is this correct behavior?
ad 4) Items displayed in the code completion list are filtered by an expanded text prefix (not by an abbreviation prefix) - that is why the 'No Suggestions' appears after 'forc' is typed in Editor. ad 5) Code templates cannot be expanded while the code completion is visible because the TAB key is consumed by the code completion infrastructure to 'insert common prefix'. However, after user hides the code completion window (e.g. by pressing Esc), pressing TAB key should expand template again. This should be fixed in jet-main. http://hg.netbeans.org/jet-main/rev/321f0c2d0201
(In reply to comment #1) > However, after user hides the code completion window (e.g. by pressing Esc), > pressing TAB key should expand template again. This should be fixed in > jet-main. Yes, I wanted to say step 5) is performed after popup is closed. Great! Thank you for fixing quickly!
Integrated into 'main-golden', will be available in build *201012020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/321f0c2d0201 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #192724: TAB does not work after code completion window is invoked - fixed.