Bug 32973 - Codeassist relevance should privilege prefix match over need for qualification
Summary: Codeassist relevance should privilege prefix match over need for qualification
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-25 10:15 EST by Philipe Mulet CLA
Modified: 2003-03-10 05:47 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-02-25 10:15:30 EST
Build 2.1RC1

In Openable, remove import statement for org.eclipse.jdt.core.*, then
perform completion at the end of IJavaElement on signature of

protected Openable(int type, IJavaElement parent, String name) {
	super(type, parent, name);
}

IJavaElement isn't the first proposition. It will privilege 
IJavaElementRequestor instead since it is inside same package.

It should always list the exact match before (I wonder if it shouldn't also 
be more prioritary than expected type relevance).
Comment 1 David Audel CLA 2003-02-26 05:44:26 EST
New value for relevance constant:
RelevanceConstants.R_EXACT_NAME = 4 //previous value is 3
RelevanceConstants.R_UNQUALIFIED = 3 //previous value is 5

Fixed.
Comment 2 David Audel CLA 2003-03-10 05:47:29 EST
Verified.