Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MyEclipse 10 autocomplete not working

Tags:

java

myeclipse

I have recently got MyEclipse 10 in work and the autocomplete feature has stopped working and I have no idea why.

Now the weird thing is, it works fine for the JSP project. In my work we have a online GUI which is created using JSP and runs on the TomCat server. But in any other project, the auto completions don't work. Not a single command will bring up the auto completion. If I try for example System. and try hitting control space, it says no completions for available. Has anyone had this problem before? And if how how on earth do I fix it, makes it rather difficult to program :P

Thanks in advance for any help

like image 592
AdamM Avatar asked Jan 04 '12 15:01

AdamM


2 Answers

Turn on Autocompletion by going to Java->Editor->Content Assist->Advanced. Ensure that Java Proposals is selected.

Eclipse Window Preferences

like image 96
AbdullahC Avatar answered Nov 14 '22 09:11

AbdullahC


Java auto-complete in MyEclipse and Eclipse will sometimes take too long to show proposals; this could be caused by a variety of reasons ranging from a system under severe load at the point at which the auto-complete was invoked to a glitch or an unusually large classpath.

Since a delay here locks your UI, Eclipse will detect this, break the auto-complete request and inform you that it took too long to complete via a dialog. It also gives you the option to turn off the auto-complete processor which took too long; if you weren't paying attention, you may have turned it off through this dialog (this happened to me a few times in my early Eclispe days).

This simply explains why it may have suddenly turned off, you would need to turn it back on using Hippo's suggestion above.

like image 33
Brian Fernandes Avatar answered Nov 14 '22 08:11

Brian Fernandes