Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Tiercelin2021-01-03 16:00:42 +0000
committerFabrice Tiercelin2021-01-03 16:00:42 +0000
commit5b155761f19f215b7bfb2b52e5f78494c0eb4081 (patch)
tree6c060729247c8f28656199f3636d47b7cfc62698
parent674617f69deac12c24299720a5ae17533313bf3a (diff)
downloadnews-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.pngbin0 -> 11088 bytes
-rw-r--r--4.19/images/multi-catch-before.pngbin0 -> 12179 bytes
-rw-r--r--4.19/images/multi-catch-preferences.pngbin0 -> 37111 bytes
-rw-r--r--4.19/jdt.html24
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
new file mode 100644
index 00000000..15ddb415
--- /dev/null
+++ b/4.19/images/multi-catch-after.png
Binary files differ
diff --git a/4.19/images/multi-catch-before.png b/4.19/images/multi-catch-before.png
new file mode 100644
index 00000000..db7a1f8a
--- /dev/null
+++ b/4.19/images/multi-catch-before.png
Binary files differ
diff --git a/4.19/images/multi-catch-preferences.png b/4.19/images/multi-catch-preferences.png
new file mode 100644
index 00000000..2bca36ae
--- /dev/null
+++ b/4.19/images/multi-catch-preferences.png
Binary files differ
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 &gt; 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 ************************************* -->

Back to the top