Bug 570491 - [AutoRefactor immigration #59/149] [cleanup & saveaction]
Reduce indentation

Change-Id: I4de12efeb171133928bba2a7247a521f960df1f7
Signed-off-by: Fabrice Tiercelin <fabrice.tiercelin@yahoo.fr>
Depends-On: I999c0f60b53a1d0f3d03e3d259705f979e2e9017
diff --git a/4.19/images/reduce-indentation-after.png b/4.19/images/reduce-indentation-after.png
new file mode 100644
index 0000000..5b17eb1
--- /dev/null
+++ b/4.19/images/reduce-indentation-after.png
Binary files differ
diff --git a/4.19/images/reduce-indentation-before.png b/4.19/images/reduce-indentation-before.png
new file mode 100644
index 0000000..1c9ee05
--- /dev/null
+++ b/4.19/images/reduce-indentation-before.png
Binary files differ
diff --git a/4.19/jdt.html b/4.19/jdt.html
index 258dd1a..ebd045c 100644
--- a/4.19/jdt.html
+++ b/4.19/jdt.html
@@ -65,6 +65,29 @@
     </td>
   </tr>
 
+  <tr id="reduce-indentation"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=570491 -->
+    <td class="title"><a href="#reduce-indentation">Reduce indentation</a></td>
+    <td class="content">
+      A new clean up has been added that removes useless indentation when the opposite workflow falls through.
+      <p>
+        When several blocks fall through, it reduces the block with the greatest indentation.
+        It can negate an <code>if</code> condition if the <i>else</i> statements fall through.
+      </p>
+      <p>
+        To apply the clean up, select <b>Reduce indentation when possible</b> check box on the <b>Code Style</b> tab in your clean up profile.
+      </p>
+      <p><img src="images/code-style-preferences.png" alt="Preferences" width="800 px"/></p>
+      <p>
+        For the given code:
+      </p>
+      <p><img src="images/reduce-indentation-before.png" alt="Before"/></p>
+      <p>
+        One gets:
+      </p>
+      <p><img src="images/reduce-indentation-after.png" alt="After"/></p>
+    </td>
+  </tr>
+
   <tr id="extract-increment"> <!-- https://bugs.eclipse.org/bugs/show_bug.cgi?id=570011 -->
     <td class="title"><a href="#extract-increment">Extract increment</a></td>
     <td class="content">