Community
Participate
Working Groups
Eclipse does not support auto-import for static fields via the CTRL + SHIFT + O shortcut. But would it be possible to add a quick-fix that would convert for example: switch(day) { case Calendar.APRIL: // .. into: import static java.util.Calendar.APRIL; // .. switch(day) { case APRIL: // .. That quick-fix option could show up whenever the cursor marks the static field (here APRIL).
Created attachment 256977 [details] Currently there's no useful option for static fields.
Stefan, you've posted this to the STEM project. I'm changing the product to JDT, as that seems most relevant to your request. -Matt
*** This bug has been marked as a duplicate of bug 197850 ***