Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7833443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:42:48+00:00 2026-06-02T12:42:48+00:00

Eclipse sometimes automatically inserts imports into my java code, but it often gets them

  • 0

Eclipse sometimes automatically inserts imports into my java code, but it often gets them wrong. Are there ways to configure the guesses that it makes. I would like to tell it to always import java.util.List rather than java.awt.list for example. There are also a bunch of others that it gets wrong including Pattern, Matcher, Logger, Node, and Element. All of which I have a preferred class that I use all the time but there are many other classes with the same name.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T12:42:55+00:00Added an answer on June 2, 2026 at 12:42 pm

    You can configure certain imports to be hidden from the content assist dialog via Window | Preferences | Java | Appearance | Type Filters.

    For example, adding a filter such as java.awt.* would hide all types from the awt packages.

    However this is probably only useful if you don’t use those classes at all, as it won’t show any content assist information for them. I haven’t come across a way to prefer certain packages or class names over others.

    Under Window | Preferences | Java | Editor | Content Assist | Favorites there are some options for adding types and members, but I think these only apply to static members.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an android application in Eclipse. Eclipse sometimes imports R automatically so
Sometimes while writing Java in Eclipse, I write code that generates warnings. A common
Sometimes Eclipse comes up saying hey you should debug this line!!! but doesn't actually
Sometimes when I am debugging code in Eclipse it happens that although I can
In Java projects in Eclipse version 3.4.1 sometimes the folder Referenced Libraries disappears from
I use Eclipse for programming in PHP and Java(Android) and sometimes Python, unfortunately Eclipse
Sometimes I'd like to print my code and read it during lunch. In Eclipse
Sometimes when I examine a code I didn’t write, I launch eclipse in debug
I am working on a Java project in Eclipse. Sometimes when I do refactoring
I am using Eclipse IDE. Sometimes, after I make some alterations to the code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.