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

Bug 6652

Summary: feature request: 'surround selection with...'
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: UIAssignee: Erich Gamma <erich_gamma>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P4    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Adam Kiezun CLA 2001-12-06 13:46:23 EST
a. try/catch (with or without smart exception calculation)
b. try/finally
c. try/catch/finally (like a.)
d. if 
e. if/else
f. do/while
g. while
...

x. user defined template - the template defines what comes before the 
selection, what goes after the selection

can be implemented in a code-assist fashion - you select sth, you hith a magic 
key and a code assist shell pops up with different options - depending on a 
selection
 (key should be different from the normal code assist, though. i think)
Comment 1 Erich Gamma CLA 2001-12-06 15:49:10 EST
yes! but not committed for 2.0 
Comment 2 Dirk Baeumer CLA 2002-01-10 06:08:23 EST
Surround with Try/Catch is implemented.
Comment 3 Dirk Baeumer CLA 2002-01-25 10:57:42 EST
No action planned for 2.0
Comment 4 Dirk Baeumer CLA 2002-07-25 14:29:27 EDT
Reopen
Comment 5 Dirk Baeumer CLA 2002-07-25 14:29:36 EDT

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