IDEA-65810 Class completion: suggest most probable class in the specific context.

This commit is contained in:
peter
2011-02-25 12:37:16 +01:00
parent f6d492b529
commit 4291983cad
4 changed files with 39 additions and 6 deletions
@@ -0,0 +1,16 @@
enum Zoo {
A,B,C,D,E,F,G,H
}
class Zaa {}
class Zab {}
class Zac {}
class Zad {}
class Zae {}
class Bar {
{
Zoo z = Z<caret>
}
}
@@ -205,4 +205,8 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
checkPreferredItems(0, "foo", "boo", "doo", "hashCode");
}
public void testPreferClassOverItsStaticMembers() {
checkPreferredItems(0, "Zoo");
}
}