I am stuck in strange error in my eclipse, in which content assist always shows empty when I press ctrl+space, in bottom it shows error “No completions available”. This error is for a particular class, while content assist works well in other class.
My eclipse is helios under windows xp.
I have tried cleaning the project, removing and re inserting the file, tried to check all the values under preferences>java>editor>content assist>advanced but nothing works.
What should I do to prevent this error?
Check the visibility of the class with which content assist does not work. If you are trying to call a method of that class, then check the visibility of that method as well. If you want that class/method to be accessible outside the package the you have to make that class/method
publicYou can learn more about the visibility modifiers here