Bug 122026 - Smarter 'for' editor template for generic collection
Summary: Smarter 'for' editor template for generic collection
Status: RESOLVED DUPLICATE of bug 102747
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-23 14:15 EST by Sam Mesh CLA
Modified: 2005-12-27 08:25 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Mesh CLA 2005-12-23 14:15:19 EST
The origin is here:
http://www.javalobby.org/java/forums/t59497.html#91975248

1. Could template be smarter or we need a second one like the following?

for (Iterator<${iterable_type}> ${iterator} = ${collection}.iterator(); ${iterator}.hasNext(); ) {
	${iterable_type} ${element} = ${iterator}.next();
	${cursor}
}

2. Personally, I'm happy with 'foreach' for 1.5. :)
Comment 1 Dani Megert CLA 2005-12-27 08:25:52 EST

*** This bug has been marked as a duplicate of 102747 ***