• Home
  • About

Eclipse Tips

Feeds:
Posts
Comments

Sorry, you’re just not my type

November 30, 2007 by David

You know how sometimes when you’re out at a bar with your hot friends and even though you’re drunk and it’s really late you can still tell that the person who’s checking you out is not your type? No? Me neither… I’d much more likely be the unlucky one doing the checking out. Well, at least Eclipse gives us the ability to filter out types that are uninteresting to you. Now the tables have turned and the rejectee becomes the rejecter. Take that, hot people at the bars!

Eclipse has many functions that involve searching for classes, auto-completion, organize imports, etc. and it can be frustrating if the class you’re looking for is defined in other libraries that you never want to use because you’ll always have to manually select it. For example, if you try to use (java.util.)List, Eclipse will prompt you to select either java.util.List or java.awt.List. Well, I am not an AWT developer so I’d prefer to ignore those options. We can configure a type filter by going to Window > Preferences > Java > Appearance > Type Filters. I added java.awt.* to my list of filters and now Eclipse will automatically select java.util.List when I attempt to use it.

Today’s tip:

Window > Preferences > Java > Appearance > Type Filters: configure type filters for content assist or quick fix proposals.

Posted in search | Tagged can I buy you a drink? sorry I'd rather have the money | No Comments Yet

  • Archives

    • June 2008
    • December 2007
    • November 2007
  • Category Cloud

    debug editor help navigation other plugins refactoring run search

Blog at WordPress.com.

Theme: Mistylook by Sadish.