Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

166
Visualizações
Eclipse Autocomplete not Working... Only for AWT?

The title pretty much explains it.

Autocomplete won't work in Eclipse, but only when I use it on objects related to java.awt. The methods overriden from Object appear, but that's it.

Here's an example

It happens in every project, not one in particular. I've tried reinstalling Eclipse, didn't work. Any help is appreciated.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

awt contains the List class (java.awt.List).

It's an unmitigated disaster, that. 99.9995872858% of the time that you type List and hit autocomplete, you just want eclipse to auto-import java.util.List, instead, until the most recent version, it popped up a non-modal dialog: Did you mean java.awt.List or java.util.List?

Programmers, being their usual lazy/incapable self, whined about this. That was a bit daft of them; there is a trivial setting in eclipse to banlist an entire package, so that it doesn't show up pretty much anywhere: Not in the Open Type dialog, and not in autocompletes. That's the 'Type Filter' feature and it's been around for years.

But programmers decided to continue to whine instead of add the setting.

With that context in mind, this should now make sense:

java.awt.* is now on this banlist by default.

But, you unique snowflake you, you found a time machine or cryosleep capsule, and slept through 20 years of history. Apparently, what other possible explanation could there be that you're still using AWT?

At any rate, simply take java.awt off that banlist and all will be well.

Open your eclipse workspace preferences, type 'Type Filters' in the filterbox. You're looking for setting java > Appearance > Type Filters. Click that, then uncheck java.awt.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda