views:

83

answers:

2

For example,

  1. I don't want to use org.testng.v6.Maps, (I want com.google.common.collect.Maps)
  2. I don't want to use org.hibernate.mapping.List, (I want java.util.List like everyone else!)

Is there a way to tell Eclipse not to suggest these in the autocomplete box?

A: 

Re-arrange your dependencies in the library path according to the order you want them to be.

  • Right click on project > Properties
  • Java Build Path
  • Order and Export tab

This should give priority to the dependencies you do prefer. (Although on second thought I am not sure this is reflected in the auto-complete boxes.)

Yuval A
+9  A: 

Yup - I have exactly this problem at work for a few classes too.

Preferences -> Java -> Appearance -> Type Filters.

Jon Skeet