Community
Participate
Working Groups
Build Identifier: I20100608-0911 "Add import" considers classes from com.sun packages as every other class. Though very seldom one is interested in using non api classes. It would improve speed to not show a dialog for choosing between com.sun.* classes if only a single normal (not com.sun.*) class exists. The classes of com.sun are normally never used, so there is no need to consider them for "Add Import" function. Reproducible: Always Steps to Reproduce: 1. tpye "File" in the source file 2. hit ctrl+Shift+M 3. A window pops up giving you a choice ... that you don't want...
You can add a Type Filter for com.sun.* classes in the preferences (Java > Appearance > Type Filters). Keeping this bug for adding some affordance for this in the dialog (e.g. description with a link to the preference page). See also bug 48736, which could influence this.
It might be a good choice for a default setting then. I don't know how eclipse policy is for default settings, but this seems like an advantageous setting for most users.
*** Bug 562752 has been marked as a duplicate of this bug. ***