Defaults for Organize Imports [message #214784] |
Sat, 09 June 2007 19:47  |
Eclipse User |
|
|
|
Is there a way to specify defaults for Organize Imports, so that when a
"List" is encountered, for example, it goes with java.util.List
automatically and doesn't ask which List to use? I'd imagine there'd be a
way, because for several common classes this gets to be slightly
irritating...
Thanks.
|
|
|
|
Re: Defaults for Organize Imports [message #742631 is a reply to message #214820] |
Thu, 20 October 2011 13:17  |
Eclipse User |
|
|
|
The "white list, or preferred types" is vital for Organize imports - or at least for Quick Fix functionality, since "black list" does not resolve ambiguous type references when many required types are exist in project(s). That case sometimes can not be resolved by a filter package names in Eclipse menu Windows=>Preference=>Java=>Appearance=>Type Filters, because touches(filters out) the needed other classes in these packages also.
For Eclipse 3.7 - where the Quick Fix functionality is available now for multiple selected error rows in Problem view would be nice to have
usual "Quick Fix dialog" with selecting the right type to import with applying it to all similar or better selected errors in Problems' list.
For the present in such case the following error appears:
"The selected problems do not have a common applicable quick fix." however it's just need to specify the particular type to do Organize Imports ambiguous type.
[Updated on: Thu, 20 October 2011 13:20] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.07065 seconds