Bug 102572

Summary: [plan] Add CamelHumps completion
Product: [Eclipse Project] JDT Reporter: Andrea Aime <andrea.aime>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: akiezun, mlists
Version: 3.1   
Target Milestone: 3.2 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 127898    

Description Andrea Aime CLA 2005-07-03 04:47:18 EDT
IDEA seems to support a kind of completion called CamelHumps. That is, you write
NPE and it expands NullPointerException. This can be done for both classes and
methods.
Now, it seems useful and it seems to me that you've already implemented part of
it in the "Find Type" dialog.

See also the discussion thread that prompted me to ask for this enhancement:
http://www.javalobby.org/java/forums/m91837410.html
Comment 1 David Audel CLA 2005-10-28 09:38:10 EDT
Fixed and tests added
  CompletionTests#testCamelCaseField1()
  CompletionTests#testCamelCaseLocalVariable1()
  CompletionTests#testCamelCaseMethod1()
  CompletionTests#testCamelCaseMethodDeclaration1()
  CompletionTests#testCamelCaseType1() -> testCamelCaseType5()
  CompletionTests_1_5#test0248() -> test0260()
  JavadocFieldCompletionModelTest#test030()
  JavadocMethodCompletionModelTest#test160() -> test161()
  JavadocTypeCompletionModelTest#test080()

Added a new option on JavaCore to disable camel case completion
/**
* CODEASSIST / Activate Camel Case Sensitive Completion
*    When active, completion show proposals whose name match to the CamelCase
pattern.
*     - option id:         "org.eclipse.jdt.core.codeComplete.camelCaseMatch"
*     - possible values:   { "enabled", "disabled" }
*     - default:           "enabled"
*/
JavaCore#CODEASSIST_CAMEL_CASE_MATCH
  
Comment 2 David Audel CLA 2005-10-28 09:44:47 EDT
Currently camel case proposals are not inserted by JDT/Text (see bug 114098).
Comment 3 David Audel CLA 2005-10-28 11:25:08 EDT
I set option default value to DISABLED until bug 114098 is fixed
Comment 4 Frederic Fusier CLA 2005-10-28 13:27:22 EDT
Verified for 3.2 M3 using build I20051025-0800+JDT/Core v_618a