Community
Participate
Working Groups
Suppose I type the line: Label path = ui.getPathLabel(); (where ui.getPathLabel() returns an org.eclipse.swt.widgets.Label) and select "Organize Imports" via my favorite mechanism. It is not necessary for JDT to prompt me for which Label class to add to the imports section because ui.getPathLabel() already disambiguates this. JDT should notice that 'path' is part of an assignment statement and see if the data type on the right hand side of the expression already sufficiently disambiguates the expression that it does not need to prompt me for the exact data type.
Given that J2SE 5.0 & performance is the major focus for 3.1 this has to wait.
not for 3.1
*** Bug 99669 has been marked as a duplicate of this bug. ***
should look at this for 3.2
This would improve organize import in many cases. Moving to JDT Core who owns ImportRewrite these days.
Jay, please follow up -- Thanks
Moving back to UI. We still implement the actual OrganizeImportsOperation.
> We still implement the actual OrganizeImportsOperation. Ah, right.