Project: JDT
Bug 14646 Template - local variable name should default to type name last segment
Reported: 2002-04-25 12:53:37 | Status: resolved fixed

Build 20020423 When iteration over an array of IClasspathEntry[], the inserted local variable is 'iClasspathEntry', where it would make more sense to propose 'entry'. A simple way to solve this problem would be to default to a name computed by extracting the last segment of the name starting with an uppercase, and converting the uppercase into a lowercase one. IClasspathEntry --> entry Runnable --> runnable IResource --> resource

Files changed in fix:
org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/codemanipulation/NameProposer.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/CompilationUnitCompletion.java org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/template/java/JavaContext.java