Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 64677

Summary: Editor does not allow to surround with try/finally block
Product: [Eclipse Project] JDT Reporter: Wendell Beckwith <wbeckwith>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Wendell Beckwith CLA 2004-05-29 13:32:17 EDT
Currently it is possible to surround code with a try/catch, but there is no
facility to surrond with a try/finally.  If the highlighted code does not throw
checked exceptions, then a dialog pops up to allow the user to chose whetehr to
catch a RuntimeException.  There should a a new menu item, or a way in the
dialog to choose to do a try/finally instead.
Comment 1 Dirk Baeumer CLA 2004-05-30 09:12:43 EDT
This can be done using templates. See comments in bug 15374.

*** This bug has been marked as a duplicate of 15374 ***