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.
Summary: | Editable templates for generated code | ||
---|---|---|---|
Product: | java | Reporter: | malfunction84 <malfunction84> |
Component: | Hints | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | CC: | markiewb, wadechandler |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
malfunction84
2008-08-01 19:21:54 UTC
Yes, that would be certainly nice to have. *** Issue 7861 has been marked as a duplicate of this issue. *** *** Issue 155481 has been marked as a duplicate of this issue. *** Definitely a needed feature. Other things can then take advantage of it. There are multiple places this would be useful. I'd like to be able to change the logger invocation on generated catch() statements. If there is concern about what "abbreviation" names to use etc, it might make sense to keep these separated from the existing code templates which the user types abbreviations to activate. But, they should be editable somewhere. The existing code templates in NetBeans (for both macros and new files) use FreeMarker, right? Will this mean that all existing hints will need to be rewritten using FreeMarker instead of the JavaC API? Fixed in 7.3 - the generated method bodies can be customized. See http://wiki.netbeans.org/NetBeans_73_NewAndNoteworthy#Customizable_Method_Bodies |