java completion: suggest constants of all suitable types from the called method's declaring class

This commit is contained in:
peter
2016-02-29 18:23:57 +01:00
parent 3b64b814c0
commit 5c8fe55a54
4 changed files with 29 additions and 2 deletions
@@ -0,0 +1,13 @@
class Foo {
public static final String FOO_FOO;
public static final String FOO_BAR;
void foo(String x);
}
public class Bar {
{
new Foo().foo(Foo.FOO_BAR);<caret>
}
}
@@ -0,0 +1,13 @@
class Foo {
public static final String FOO_FOO;
public static final String FOO_BAR;
void foo(String x);
}
public class Bar {
{
new Foo().foo(FB<caret>)
}
}