Quantcast
Viewing all articles
Browse latest Browse all 6

Eclipse: Filter / Exclude certain packages during “Organize Imports”

The Eclipse “Organize Import” Feature (Cntr+Shift + O) allows to automatically import the packages which are used in a program. If there are several options Eclipse suggests all available classes and the user has to select the right one.

Image may be NSFW.
Clik here to view.
organizeImport

If you are working mainly with SWT the fact that Eclipse does also suggest java.awt and javax.swing classes can be annoying.

To prevent this you can add a “Type Filter” under Windows -> Preferences -> Java -> Appearance -> Type Filters. Then these classes are not suggested anymore.


Viewing all articles
Browse latest Browse all 6

Trending Articles