Community
Participate
Working Groups
'Preferences > Java > Type Filters' should not completely hide matching types from the Open Type dialog. Matching types should only get a lower priority than the other types, so that the first qualifier choice is always a non-filtered type if possible.
Nor for 3.0.
'Lower priority instead of filtering' would also have to apply for content assist.
We should just give unchecked entries from the Type Filters preferences a lower priority.
> We should just give unchecked entries from the Type Filters preferences a lower > priority. The user should be able to configure this new interpretation of unchecked type filters e.g. via a checkbox "Reduce priority of types matching unselected filters".
*** Bug 308281 has been marked as a duplicate of this bug. ***
We should add priorities to the Type Filters feature in Content Assist, Organize Imports, and Open Type. - types that match checked filters should be filtered - types that match unchecked filters should have lower priority (should be sorted after other types with the same name) Types that match unchecked filters could also be presented in the order of the filters. For that, the user would need to reorder the entries in the Type Filters dialog.
Should I put this in a different enhancement issue? -- There should be a save-actions-auto-import-settings area where I could specify classes which I would want it to choose automatically. Example: 1. I go to this settings area and I say that I want java.util.List to be the dominant List. 2. I type into eclipse: public static void main(String[] args){ List<String> list = new ArrayList<String>(); list.add("I hate having to choose which imports I want when I choose the same ones every time!"); } 3. I then press "CTRL-S" to save. Now, when I do the above steps on my computer, it does what I want because I type-filtered out java.awt.List, but if I explicitly type "List" + "CTRL+SPACE", I want java.awt.List to still be available (as a lower ranked option). With type filters right now, it is all or nothing.
I see: you'd like the filters to work for Organize Imports but for content assist you want to see all proposals but the filtered ones with lower prio. No need to open a separate bug for that. Once we tackle this bug we'll decide how much flexibility we want to add.