Why is the eclipse autocomplete function not working within the Onclicklistener?

Asked

Viewed 1,909 times

0

I was writing my codes normally when one day I realized that Eclipse (the program I’m using to make Android apps) is not completing my words, for example: I have a variable called 'Functions', when I write 'Func' and press Ctrl + Space does not show the options for me to choose.

But the strange thing is that it works outside the OnClickListener, that is, if I write any code within the OnClickListener the Eclipse does not complete, nor the common codes. Before I typed for and pressed Crtl + Space and he gave me suggestions as Foreach.

I have tried to check the Java Proposals options in the Eclipse Settings, but it still doesn’t work. Why is this happening?

  • opens the blank window by pressing Ctrl + space or even the window appears?

  • The window opens and says "No Default Proposals". Outside Onclicklistener the window opens and displays the options normally.

  • check if the variable you are trying to access is actually accessible inside the System, if possible put some code here showing exactly how to reproduce the error

1 answer

1

Try restore the default options in 'Windows > Preferences > Java > Editor > Content Assist > Advanced'

An example of the type of data you will see on this screen may differ from what you actually have.

eclipse content assist setting

(For Vadim in that post blog post " Content Assist Duplicates in Eclipse (Mylyn)":
if Mylyn entries are duplicated, uncheck duplicates that do not contain the word "(Mylyn)" on your behalf)

To Eclipse help page Sets the default values:

Select the Proposal Kinds contained in the 'default' content assist list:

  • Other Java Proposals,
  • SWT Template Proposals,
  • Template Proposals,
  • Type Proposals

Source:https://stackoverflow.com/questions/908489/eclipse-java-code-completion-not-working

Browser other questions tagged

You are not signed in. Login or sign up in order to post.