Community
Participate
Working Groups
When invoked on a static reference the "Add Import" command replaces the qualified reference with an unqualified reference. All previously qualified references in the open file should be replaced with unqualified references. Currently only the single reference directly operated on by "Add Import" is replaced. -- Before -- Foo.doBar(); // later Foo.doBar(); -- After (buggy) -- import static Foo.doBar; // later doBar(); // later Foo.doBar(); -- After (correct) -- import static Foo.doBar; // later doBar(); // later doBar();
*** Bug 159809 has been marked as a duplicate of this bug. ***
Moving to JDT/UI
At the moment you have to go through each reference.