diff options
| author | Fabrice Tiercelin | 2021-01-03 16:00:42 +0000 |
|---|---|---|
| committer | Fabrice Tiercelin | 2021-01-03 16:00:42 +0000 |
| commit | 5b155761f19f215b7bfb2b52e5f78494c0eb4081 (patch) | |
| tree | 6c060729247c8f28656199f3636d47b7cfc62698 | |
| parent | 674617f69deac12c24299720a5ae17533313bf3a (diff) | |
| download | news-5b155761f19f215b7bfb2b52e5f78494c0eb4081.tar.gz news-5b155761f19f215b7bfb2b52e5f78494c0eb4081.tar.xz news-5b155761f19f215b7bfb2b52e5f78494c0eb4081.zip | |
Bug 569879 - [AutoRefactor immigration #52/146] [cleanup & saveaction]
Multi-catch
Change-Id: Ie0f9468c45bf27f3031dab59d42b4dfe6fbdacb3
Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Depends-On: Iba9d8a728725278dc5f201db59fa8577fbeae4c8
| -rw-r--r-- | 4.19/images/multi-catch-after.png | bin | 0 -> 11088 bytes | |||
| -rw-r--r-- | 4.19/images/multi-catch-before.png | bin | 0 -> 12179 bytes | |||
| -rw-r--r-- | 4.19/images/multi-catch-preferences.png | bin | 0 -> 37111 bytes | |||
| -rw-r--r-- | 4.19/jdt.html | 24 |
4 files changed, 23 insertions, 1 deletions
diff --git a/4.19/images/multi-catch-after.png b/4.19/images/multi-catch-after.png Binary files differnew file mode 100644 index 00000000..15ddb415 --- /dev/null +++ b/4.19/images/multi-catch-after.png diff --git a/4.19/images/multi-catch-before.png b/4.19/images/multi-catch-before.png Binary files differnew file mode 100644 index 00000000..db7a1f8a --- /dev/null +++ b/4.19/images/multi-catch-before.png diff --git a/4.19/images/multi-catch-preferences.png b/4.19/images/multi-catch-preferences.png Binary files differnew file mode 100644 index 00000000..2bca36ae --- /dev/null +++ b/4.19/images/multi-catch-preferences.png diff --git a/4.19/jdt.html b/4.19/jdt.html index f83aad81..26ffbabb 100644 --- a/4.19/jdt.html +++ b/4.19/jdt.html @@ -61,7 +61,29 @@ ul {padding-left: 13px;} <!-- ******************* Java Editor ************************************* --> <tr> <td id="JavaEditor" class="section" colspan="2"> - <h2>Java Editor </h2> + <h2>Java Editor</h2> + </td> + </tr> + + <tr id="multi-catch"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=569879 --> + <td class="title"><a href="#multi-catch">Multi-catch</a></td> + <td class="content"> + A new clean up has been added that refactors catch clauses with the same body to use Java 7's multi-catch. + <p> + The feature is enabled only with Java 7 or higher. + </p> + <p> + To apply the clean up, invoke <b>Source > Clean Up...</b>, use a custom profile, and on the <b>Configure...</b> dialog, select <b>Use Multi-catch</b> check box on the <b>Java Feature</b> tab. + </p> + <p><img src="images/multi-catch-preferences.png" alt="Preferences" width="800 px"/></p> + <p> + For the given code: + </p> + <p><img src="images/multi-catch-before.png" alt="Before"/></p> + <p> + One gets: + </p> + <p><img src="images/multi-catch-after.png" alt="After"/></p> </td> </tr> <!-- ******************* End of Java Editor ************************************* --> |
