Bug 251865 - [assist] Improve relevance based on case
Summary: [assist] Improve relevance based on case
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 158722
  Show dependency tree
 
Reported: 2008-10-23 11:33 EDT by Dani Megert CLA
Modified: 2011-05-23 06:05 EDT (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 Dani Megert CLA 2008-10-23 11:33:56 EDT
I20081021-0905

Let's look at this code:

FooBar fooBar;
foo<code assist> ==> suggests variable before type (OK)
foob<code assist> ==> suggests type before variable (most of the time not desired)

I suggest to boost relevance if the variable prefix (char count) with identical casing is longer than for the type (and vice versa).

i.e.
foob<code assist> ==> would suggests variable before type
fooB<code assist> ==> would suggests variable before type
Foob<code assist> ==> would suggests type before variable