Community
Participate
Working Groups
Build Identifier: 20090920-1017 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
Works fine for me using 3.6 RC2. Make sure that you sort the proposals by relevance (Java > Editor > Content Assist preference page).
I do sort them by relevance. Is this a new feature in 3.6? What did you do to use this order?
>Is this a new feature in 3.6? What did you do to use this order? No. Works like this for a long time for variables. Maybe you have Mylyn installed - they fiddle around with JDT's sorting/filtering. Note that this is not true for deprecated members: those can only be filtered away but not sorted to the end.
Yes, I have Mylyn installed. So what should I do to raise a bug in the mylyn tracker? Isn't this this very same tracker? What about the deprecated proposals? Could it be added to 3.6 to sort them to the bottom?
>So what should I do to raise a bug in the mylyn >tracker? Isn't this this very same tracker? Right, it's the same system but since you started to report two different things in one bug, it's best to just open a new one against Mylyn. >What about the deprecated proposals? Could it be added to 3.6 to sort them to >the bottom? 3.6 is basically done. You might want to track bug 137953.