Summary: | Surround with try/finally action [refactoring] | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Scott Rutledge <srutledg> |
Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | wbeckwith |
Version: | 2.0 | Keywords: | investigate |
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Scott Rutledge
to be considered after 2.0 [refactoring] As an alternative we can provide an action similar to Surround with try/catch. Consider for 2.1 On reflection, that would probably be the best way to go from a UI perspective. However I still like my 'wrapping template' idea, but I'll raise a seperate FR for it. in 2.1 select lines to surround, ctrl + 1 and you will see all templates that contain the variables ${line_selection} do, while, try are defined by default , but you can also define your own surrounding templates. *** Bug 64677 has been marked as a duplicate of this bug. *** While this does work (and thanks, since I never used the templates before), nonetheless there are 2 ways of creating a try/catch block, templates and the context menu, and since a try/finally block is analogous to a try/catch, I think this issue warrants similar handling. Besides not all users are ex/current vi/emacs users and enjoy the cryptic key bindings. Some are propbably like me and use the context menu more than anything else. This issue should be reopend and menu item added. |