Home > OS >  Eclipse 2021-09 code completion not showing all methods and classes
Eclipse 2021-09 code completion not showing all methods and classes

Time:09-30

Hi some days before I updated my eclipse 2021-06 to 2021-09 and after that its code completion will not show all the methods and classes. for example if I type frame.setS, then it is showing no default proposals.

enter image description here

But At the same time when I type frame.setC and press ctrl space, it is working This is the

enter image description here

Also in my settings everything is checked.

enter image description here

What I have tried

  1. I searched the web and found many stack overflow questions and I tried the answers. But it didn't work

  2. I deleted the .metedata folder and uninstalled and reinstalled eclipse for 5 times.

  3. I tried installing eclipse from installer and zip.

Is this a bug or something.

I have also installed the java 17 plugin from eclipse marketplace.

CodePudding user response:

In Eclipse 2021-09 (4.21) everything of java.awt.* is filtered out in the content assist by default.

To disable this default filter, go to the preferences (Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*.

You might also consider reporting this to Eclipse if you think it would be better not to have this filter at all or at least not enabled by default (which would make sense since javax.swing.JFrame extends java.awt.Frame; I would like to have at least java.awt.List filtered out by default, which should not be a problem in Swing, right?).

  • Related