IDEA-69328 Code completion in switch...case: complete other possible values from already ref'd class

This commit is contained in:
peter
2011-12-27 18:17:02 +01:00
parent 8f8976dbba
commit 784c2f101a
7 changed files with 70 additions and 16 deletions

View File

@@ -0,0 +1,13 @@
class Foo {
void foo(int i) {
switch (i) {
case Constants.BAR0: return;
case B<caret>:
}
}
}
interface Constants {
int BAR0 = 0;
int BAR1 = 1;
}

View File

@@ -0,0 +1,13 @@
class Foo {
void foo(int i) {
switch (i) {
case Constants.BAR0: return;
case Constants.BAR1:<caret>
}
}
}
interface Constants {
int BAR0 = 0;
int BAR1 = 1;
}