Tuesday, October 4, 2011

Eclipse: Exclude Packages From Autocomplete and Organize Imports

If you are programming SWT there are allways this nasty AWT classes that come up when using the autocomplete (Ctrl + Space) or organize imports (Ctrl + Shift + O). Sometimes they are even in the first line of the result.

If you want to get ride of it or other undesireable packages use Type Filters.

Preferences -> Java -> Appearance -> Type Filters
Add... the  java.awt.*  package.

No comments:

Post a Comment