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 155481 - All code insertions by editor should use code templates
Summary: All code insertions by editor should use code templates
Status: RESOLVED DUPLICATE of bug 142630
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-15 16:23 UTC by greggwon
Modified: 2008-12-15 17:53 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 greggwon 2008-12-15 16:23:07 UTC
There are several cases where the editor inserts code which is not from a template.  
Examples include things like the Logger usage from "surround with try-catch statement"
as well as other things such as the exception thrown from methods created by selecting
the resolution action, "Implement all abstract methods".

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.
Comment 1 Petr Dvorak 2008-12-15 17:53:27 UTC
Yes, this is a very usual request, as can be seen in many issues, for example:

http://www.netbeans.org/issues/show_bug.cgi?id=142630 (<- this one is requesting the same...)
http://www.netbeans.org/issues/show_bug.cgi?id=116818 (<- more options for logging etc. in "try ... catch" block)
...

Please add your votes to issue 142630...

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