eclipse-jdt / eclipse.jdt.core

Eclipse Public License 2.0
157 stars 125 forks source link

[content assist] Prefer built-in classes over external library classes #2659

Closed jubax closed 2 months ago

jubax commented 3 months ago

I am using the ICU library which happens to include also a MessageFormat class. Since I am using this library the content assist always suggests this class first. But in most cases you want the built-in java.text.MessageFormat

image

Maybe this behavior is even intentional. In that case it would be nice to have a place where you could put favorites. I mean like the favorites for static imports from "Java->Editor->Content Assist->Favorites".

I noticed that I can force Eclipse not to use the ICU MessageFormat class if I add it to "Java->Appearance->Type Filters". Is this the preferred way to go?

But this way you still get the suggestion

image

if you type MessageFormat.f.

jubax commented 2 months ago

@jjohnstn, thanks a lot for fixing this!