|Organize Imports and import static xxx.yyy.* [message #690498]
||Wed, 29 June 2011 15:40
| Steve Cohen
Registered: July 2009
|Should "Organize Imports" be customized to allow import static xxx.yyy.* to be left alone?[ 2 votes ]|
|1.||No|| 0 / 0%|
|2.||Yes|| 2 / 100%|
It would be nice if Organize Imports worked differently with import static, at least optionally.
While I DO agree that Organize Imports should convert stuff like
to a list of imports actually used, since I consider the above an abomination when reading someone else's code, I would rather not have Eclipse perform the same logic on something like
import static java.awt.event.KeyEvent.*;
I might, for example, want to do that in developing a custom keyboard handling class that did a lot of referencing of VK_this and VK_that. But, since I am in the habit of using OrganizeImports a lot, this always messes with me, and forces me to change my import list whenever I want to reference a new VK_something that wasn't used before.
Could Eclipse be enhanced to allow some customizing of how Organize Imports works?
[Updated on: Wed, 29 June 2011 16:04]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.03406 seconds