JDT UI: Quick Fixes to create 'for' loops
diff --git a/platform/4.4/M4/eclipse-news-M4.html b/platform/4.4/M4/eclipse-news-M4.html
index 074da80..9186bd3 100644
--- a/platform/4.4/M4/eclipse-news-M4.html
+++ b/platform/4.4/M4/eclipse-news-M4.html
@@ -10,6 +10,7 @@
<h1>Eclipse Project 4.4 M4 - New and Noteworthy</h1>
<p>Here are some of the more noteworthy things available in milestone build M4
(December 13, 2013) which is now available for <a href="http://download.eclipse.org/eclipse/downloads/" target="_top">download</a>.
+ <br/>
We also recommend to read the Tips and Tricks, either via <b>Help > Tips and Tricks...</b> or online for
<a href="http://help.eclipse.org/topic/org.eclipse.platform.doc.user/tips/platform_tips.html">Platform</a>,
<a href="http://help.eclipse.org/topic/org.eclipse.jdt.doc.user/tips/jdt_tips.html">JDT</a>, and
@@ -126,6 +127,19 @@
The JDT Core project has moved to Java 1.6 compliance level. This means the command line compiler now requires JRE 1.6 or above to run.
</td>
</tr>
+ <tr id="quickfix-create-for-loop">
+ <td class="title">Quick Fixes to create 'for' loops</td>
+ <td class="content">
+ A set of new quick fixes now help you create <code>for</code> loops that iterate over a given expression.
+ <p>
+ For <code>Collection</code>s, you can create an enhanced <code>for</code> loop or a <code>for</code> loop using an <code>Iterator</code>.<br/>
+ For <code>List</code>s, you can also create a <code>for</code> loop using an index and <code>get(i)</code>.
+ </p>
+ <p><a href="images/quickfix-create-for-loop-1.txt"><img src="images/quickfix-create-for-loop-1.png" alt=""/></a></p>
+ For arrays, you can create an enhanced <code>for</code> loop or a <code>for</code> loop using an index.
+ <p><a href="images/quickfix-create-for-loop-2.txt"><img src="images/quickfix-create-for-loop-2.png" alt=""/></a></p>
+ </td>
+ </tr>
<tr>
<td colspan="2" class="section" id="PDE">PDE</td>
</tr>
diff --git a/platform/4.4/M4/images/quickfix-create-for-loop-1.png b/platform/4.4/M4/images/quickfix-create-for-loop-1.png
new file mode 100644
index 0000000..c4263b1
--- /dev/null
+++ b/platform/4.4/M4/images/quickfix-create-for-loop-1.png
Binary files differ
diff --git a/platform/4.4/M4/images/quickfix-create-for-loop-1.txt b/platform/4.4/M4/images/quickfix-create-for-loop-1.txt
new file mode 100644
index 0000000..63af85c
--- /dev/null
+++ b/platform/4.4/M4/images/quickfix-create-for-loop-1.txt
@@ -0,0 +1,3 @@
+ void foo(Map<String, Integer> map) {
+ map.keySet()
+ }
\ No newline at end of file
diff --git a/platform/4.4/M4/images/quickfix-create-for-loop-2.png b/platform/4.4/M4/images/quickfix-create-for-loop-2.png
new file mode 100644
index 0000000..2c26bdf
--- /dev/null
+++ b/platform/4.4/M4/images/quickfix-create-for-loop-2.png
Binary files differ
diff --git a/platform/4.4/M4/images/quickfix-create-for-loop-2.txt b/platform/4.4/M4/images/quickfix-create-for-loop-2.txt
new file mode 100644
index 0000000..ab9b415
--- /dev/null
+++ b/platform/4.4/M4/images/quickfix-create-for-loop-2.txt
@@ -0,0 +1,3 @@
+ void foo(int[] offsets) {
+ offsets
+ }
\ No newline at end of file