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

Summary: Allow per-project templating of exception handling (and similar generated) code
Product: java Reporter: _ tboudreau <tboudreau>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 116818    

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.