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 124617 - Allow per-project templating of exception handling (and similar generated) code
Summary: Allow per-project templating of exception handling (and similar generated) code
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 116818
  Show dependency tree
 
Reported: 2008-01-03 01:59 UTC by _ tboudreau
Modified: 2013-09-02 14:19 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 _ tboudreau 2008-01-03 01:59:03 UTC
Different kinds of projects have different ways of handling exceptions (c.f. issue 116818).  We already handle this for the case of NetBeans module projects 
(where you will get org.openide.util.Exceptions.printStackTrace() rather than a logger call).  The JDK logger makes sense for some kinds of projects, but most 
projects will have their own way of handling exceptions, and the generated code should honor that - in particular, issue 116818 notes that the current 
generated code is inappropriate for Java ME projects.

Exception handling code (and other similar generated code) should be able to be templated as an attribute of the project, customizable within the project 
properties.  Also user-entered templates for such code should be able to be reused for new projects, once entered once, through some kind of project profile 
or at least a drop-down of known templates used in other projects.