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 60420

Summary: "surround with try/catch" feature is needed
Product: editor Reporter: alskor <alskor>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description alskor 2005-06-23 09:57:39 UTC
"surround with try/catch" feature is needed:

JBuilder has this feature: when you select a java code and click CTRL+SHIFT+C,
it surrounds the code with try-catch lines, required for this code.

it would be great if NetBEans has this also
Comment 1 alskor 2005-06-23 10:13:59 UTC
it looks like this issue is already described here.
I'm marking my own request as "duplicate of bug #28971".

it's a pitty that there are some many good requests, which are not implemented
yet :(

*** This issue has been marked as a duplicate of 28971 ***
Comment 2 Martin Matula 2005-06-23 10:26:05 UTC
As you can see from issue 35661, the basic version of this feature is already
there (in dev builds) - just select a block of code and hit ctrl+alt+S or
rightclick on the block and select "Surround with try-catch" in the pop-up menu.
As you can also see issue 28971 is a duplicate of 35661 - please do not set
something to be a duplicate of a duplicate. I am going to make this a duplicate
of issue 35661.
Comment 3 Martin Matula 2005-06-23 10:26:35 UTC

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