Eclipse completions problem?

I have been getting this problem since yesterday’s evening, and it is really annoying. Basically completions and suggestions are working properly, almost.

When I’m writing interfaces for example, I don’t have completions available for that specific interface. It doesn’t happen for all interfaces, just for some…

Take this for example.


jlist.addListSelectionListener(new ListSelectionListener() {
			public void valueChanged(ListSelectionEvent e) {
				
				int index = jlist.getSelectedIndex();
				if (index != -1) currentSheet = sheets.get(index);
				else currentSheet = null;
				forceRender();
			}
		});

I have no completions available when trying to write valueChanged method and it is really annoying to me. Anybody knows why this might be happening?

Just a guess. Try attaching the Java source code to Eclipse. That way, code completion will then use that source code as a reference to autocomplete your method.

This only work for standard Java libraries that come with your JDK.

Sometimes Eclipse just gets horribly confused and gives up. Reopening the *.java file usually solves the problem.

That, if it still does not go away I find re-importing the project to work.