The autocomplete context menu doesn't offer any usefull entries in some situations.
instantiate new object, start autocomplete after class name:

fill in the first argument, then try to autocomplete again on the second argument:

Although autocomplete shows "MaterialIcon" als second argument type, suddenly it is all gone, and none-fitting entries (variables) are shown.
The first argument should be the MaterialIcon enum.
This is a closed sourc project, so I can't share the code.
Can reproduce in
public class Test {
public static void main(String[] args) {
ComponentHandler handler = getHandler();
MaterialIcon icon = getIcon();
new Test(getHandler(), |autocomplete| );
}
public Test(ComponentHandler c, MaterialIcon icon) {
}
public static ComponentHandler getHandler() {
return new ComponentHandler();
}
public static MaterialIcon getIcon() {
return new MaterialIcon();
}
public static class ComponentHandler {
}
public static class MaterialIcon {
}
}
or even simpler:
public static void main(String[] args) {
String foo = "";
bar(|autocomplete|);//doesn't propose foo here
}
public static void bar(String foo) {}
This is an upstream bug. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=196427