Community
Participate
Working Groups
3.1 List<String> names= new ArrayList<String>(); for<code assist> should produce List<String> names= new ArrayList<String>(); for (Iterator<String> iter = names.iterator(); iter.hasNext();) { String element = iter.next(); }
*** Bug 112175 has been marked as a duplicate of this bug. ***
*** Bug 122026 has been marked as a duplicate of this bug. ***
Time permitting for 3.2.
*** Bug 98429 has been marked as a duplicate of this bug. ***
*** Bug 154414 has been marked as a duplicate of this bug. ***
Time permitting for 3.3.
*** Bug 200920 has been marked as a duplicate of this bug. ***
We should first fix bug 95787.
*** Bug 254858 has been marked as a duplicate of this bug. ***
Isn't this template sufficient? for (${iteratorType:newType(java.util.Iterator)}<${type:elemType(collection)}> ${iterator} = ${collection}.iterator(); ${iterator}.hasNext(); ) { ${type:elemType(collection)} ${name:newName(type)} = ${iterator}.next(); ${cursor} } (This is the default template, but added "<${type:elemType(collection)}>" after the iterator type.)
See comment 8: > We should first fix bug 95787. Without that, the 'for' template would be broken if source level is < 1.5.
This is annoying me ever since JDT/UI moved to 1.5.
*** Bug 357910 has been marked as a duplicate of this bug. ***