Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 314449

Summary: [content assist] Proposals sort variables before classes
Product: z_Archived Reporter: Marvin Fröhlich <eclipse>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marvin Fröhlich CLA 2010-05-26 08:43:07 EDT
Build Identifier: Eclipse: 20090920-1017, Mylyn: 3.3.0.v20091015-0500-e3x

I couldn't find a way to tell the code assist to sort variable names before
class names.

If I have a class named "MyFunnyClass" defined somewhere and a variable defined
and named "myFunnyVariable" or even "myFunnyClass" and I type code like this

################
System.out.println( "test: " + myFunn| );
################

where the caret is at the pipe's location and I press CTRL+Space, the proposals
list will contain the class MyFunnyClass before the variable myFunnyVariable
and myFunnyClass.

In almost every single case I want to use the variable beginning with the name
part, but not the class. But there is no way to tell the code assis to adjust
this order.

I thought, it could be "Java/Editor/Code Assist/Advanced" in the Preferences,
but this doesn't change anything.

I would also like to push deprecated proposals to the bottom.

Reproducible: Always, if Mylyn is installed

Reproducible: Always
Comment 1 Marvin Fröhlich CLA 2010-05-26 08:44:04 EDT
Forgot to remove the note about deprecated proposals. Please ignore it here.
Comment 2 Steffen Pingel CLA 2010-07-15 19:08:32 EDT
Mylyn's content assists sorts by proposals by interest. Do you see the same behavior when you use the standard JDT content assist (Window ? Preferences ? Java ? Editor ? Content Assist ? Advanced ? Restore Defaults)?
Comment 3 Steffen Pingel CLA 2010-10-25 12:46:42 EDT
This bug report requires further input for resolution. Marvin, please provide an answer to comment 1 and feel free to reopen.