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.
Originator: Doug Fields <dfields@interpage.net> Here's an interesting possible feature: ALT-SHIFT-C Adds all catch statements to the current enclosing try-catch-finally block for the identifier under the point. If no enclosing try-catch-finally block, add one enclosing the current statement or fragment. Parser database of course must be able to identify it. For example (assume ^ means the insert point is here): number = Integer.par^seInt(someString); then hit ALT-SHIFT-C, will result in: try { number = Integer.par^seInt(someString); } catch (NumberFormatException nfe) { } Or, alternately try { ...some code... number = Integer.par^seInt(someString); ...some code... } catch (NullPointerException npe) { ... some exception handling code... } then hit ALT-SHIFT-C, will result in: try { ...some code... number = Integer.par^seInt(someString); ...some code... } catch (NullPointerException npe) { ... some exception handling code... } catch (NumberFormatException nfe) { } then hitting ALT-SHIFT-C again will result in no changes.
Target milestone -> 3.3.1.
Set target milestone to TBD
Changed subcomponent to code completion.
*** Issue 21296 has been marked as a duplicate of this issue. ***
Moving under refactoring.
*** This issue has been marked as a duplicate of 28971 ***