Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse - Method Suggestion Issues

Tags:

java

eclipse

I was wondering if anyone could help me with an issue with Eclipse.

Since I changed the packages in Eclipse, something has changed with the auto completion tool. I can no longer see any public methods when writing the ., however, if I manually type the line in there is no compile error.

Does anyone know how I might go about fixing this?

like image 425
Biscuit128 Avatar asked Mar 05 '12 10:03

Biscuit128


People also ask

Why Eclipse suggestions are not working?

Try this: Go to Preferences » Java » Editor » Content Assist » Advanced. Make sure Other Java Proposals is ticked/checked.

How do I enable code suggestions in eclipse?

Go to the Eclipse Windows menu -> Preferences -> Java -> Editor -> Content assist and check your settings here. Enter in Autocomplete activation string for java: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ. Apply and Close the Dialog box.

How do I get import suggestions in eclipse?

In the case of name conflicts (ie. the same class name in different packages), a dialog pops up prompting you for the class you intended to use. As you type a class name, press Ctrl+Space to bring up Eclipse's autocomplete. Once you press Enter to select it, Eclipse will automatically add an import for the class.


2 Answers

I've had this issue before, and for me, the content assist settings were broken. The following fixed it:

  • Open Eclipse Preferences
  • Go to Preferences > Java > Editor > Content Assist > Advanced
  • Make sure that Other Java Proposals is selected in the list of proposal kinds.
like image 89
nwinkler Avatar answered Oct 05 '22 21:10

nwinkler


Go to Preferences > Java > Editor > Content Assist > Advanced Select Java Proposal. Please see the screenshot for more details.

enter image description here

like image 28
Bikash Singh Avatar answered Oct 05 '22 20:10

Bikash Singh