this has already been marked as a bug in bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=395604
Eclipse Kepler Code completion not working
-
01-07-2022 - |
Question
I am working on an enum which contains commands for dealing with pop3 therefore I would like to store the procedure which will be performed at each command in the enum. This is what i builded:
Now my Eclipse codecompletion is not working when I try to edit one of the
@Override
public void doWork(Socket clientSocket, DataOutputStream outToServer, BufferedReader inFromServer, EmailAccount emailAccount) {
// TODO Auto-generated method stub
}
Methods. I already enabled all proposaltypes in preferences -> Java -> Editor -> COntent Assist -> Advanced
Do you have any suggestions?
public enum CodecompletionTest {
CONST1("FOO", new Event() {
@Override
public void doWork(int foo, String bar) {
// no codecompletion in here
}
});
private CodecompletionTest(String fo, Event bar) {
// do smth with fo and bar
}
private interface Event {
/**
* Verarbeitung spezifisch ausführen
*
*/
public abstract void doWork(int foo, String bar);
}
}
Solution 3
OTHER TIPS
Checking the Java Proposals checkbox in
Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced
should resolve this problem.
on ubuntu studio the ctrl-space was assigned at the operating system level to change the keyboard input method. I had to change the Next Input Method in Settings Manager–>Keyboard Input Methods–>Next Input Method field.
I changed it from ctrl-space to ctrl-alt-shift-space.