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?
Try this: Go to Preferences » Java » Editor » Content Assist » Advanced. Make sure Other Java Proposals is ticked/checked.
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.
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.
I've had this issue before, and for me, the content assist settings were broken. The following fixed it:
Go to Preferences > Java > Editor > Content Assist > Advanced Select Java Proposal. Please see the screenshot for more details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With