Bug 124525

Summary: [assist] Smarter Autocompletion for variable names
Product: [Eclipse Project] JDT Reporter: Vera Henneberger <verawahler>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, pombredanne
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: All   
OS: All   
Whiteboard:

Description Vera Henneberger CLA 2006-01-19 13:58:14 EST
Actually eclipse offers only a simple autocompletion for variables.
Examples:
Typing "String " & Autocompletion -> "String string".
Often name of variables should end with the type of the variable.
Example for smarter Autocompletion:
Typing "Element rootE" + Autocompletion -> "Element rootElement"
Comment 1 David Audel CLA 2006-02-07 11:35:40 EST
Fixed and tests added
  CompletionTests#testCompletionVariableName4() -> testCompletionVariableName14()

"Element root" is completed to "Element rootElement"
"Element firstRoot" is completed to "Element firstRootElement"
"Element rootEl" is completed to "Element rootElement"

if a prefix is defined (eg 'f')

"Element froot" is completed to "Element fRootElement"



Comment 2 Frederic Fusier CLA 2006-02-15 10:46:26 EST
Verified for 3.2 M5 using build I20060215-0010.