Bug 102572 - [plan] Add CamelHumps completion
Summary: [plan] Add CamelHumps completion
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 127898
  Show dependency tree
 
Reported: 2005-07-03 04:47 EDT by Andrea Aime CLA
Modified: 2006-02-14 16:06 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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