| Summary: | Source>Surround with try/catch does not allow refining an existing try/catch block [quick assist] | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Simon Tardell <simon> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | Keywords: | helpwanted |
| Version: | 2.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
You can do this using quick fix. It provides a fix add a catch block to an existing try statement. No. QuickFixes are only available if the exception is not caught. In the example it is caught by catching the mother-of-all-exceptions. You are correct ! This is more a quick assist feature then a refactoring. Currently no action planned for 3.0 until we get external help. Reopening... This got fix a long time ago... Reopening... (worng bug) . As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you. |
If you have a piece of code like this: try{ doSomething(); doSomethingElse(); }catch(Exception e){...} where doSomething and doSomethingElse declares some exceptions, "Source>Surround with try/catch" will not add catch clauses to the existing try/catch.