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.
Hi! In NetBeans 6.1 it is not possible to use java code templates "string literal". You can reproduce this by typing: System.out.println("Hello World <position to insert code template>"); Put the course at the positions "<position to insert code template>" and try to call a code template. I used in NetBeans 6.0 quite frequently the code templates: Abbreviation: si Expanded Text: '" + ${cursor} + "' Abbreviation: sin Expanded Text: " + ${cursor} + " But they do not work anymore with NetBeans 6.1 within "string literal". Thank you for the feedback.
How does you response is going to look? How much time does it normally take until you get a feedback on a issue? Thank you.
The problem is that string literals has different mime-type than the rest of java file and the code template are mime-type specific, unfortunately the string mime type is not listed by default. See issue 128019
The same story as in issue #134205.
http://hg.netbeans.org/main/rev/cbe2e7bfb41a
Integrated into 'main-golden', available in NB_Trunk_Production #243 build Changeset: http://hg.netbeans.org/main/rev/cbe2e7bfb41a User: Vita Stejskal <vstejskal@netbeans.org> Log: #135468 (fixed): enabling java code templates in java string literals
Thank you for fixing the issue. How to i update the current NB 6.1 installation?
verified, this is good candidate for patch3 mg11: the easies will be to wait, I've nominated this fix to be included in patch3. The other possibilities are - use dev builds - get sources for 6.1 and apply the fix manually (it's quite simple fix) a compile.
I've transplanted the changeset http://hg.netbeans.org/main/rev/cbe2e7bfb41a into release61_fixes repository as http://hg.netbeans.org/release61_fixes/rev/da634a2646ee
verified in patch