Bug 87950 - [organize imports] Incorporate type inferencing
Summary: [organize imports] Incorporate type inferencing
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: fix candidate
Keywords:
: 99669 (view as bug list)
Depends on:
Blocks: 377658
  Show dependency tree
 
Reported: 2005-03-14 12:02 EST by Dave Orme CLA
Modified: 2014-03-04 11:15 EST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Orme CLA 2005-03-14 12:02:47 EST
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.
Comment 1 Dirk Baeumer CLA 2005-03-15 05:03:32 EST
Given that J2SE 5.0 & performance is the major focus for 3.1 this has to wait.
Comment 2 Martin Aeschlimann CLA 2005-05-23 13:22:21 EDT
not for 3.1
Comment 3 Martin Aeschlimann CLA 2005-06-15 04:45:35 EDT
*** Bug 99669 has been marked as a duplicate of this bug. ***
Comment 4 Martin Aeschlimann CLA 2005-07-26 07:07:06 EDT
should look at this for 3.2
Comment 5 Dani Megert CLA 2010-05-19 03:21:12 EDT
This would improve organize import in many cases.

Moving to JDT Core who owns ImportRewrite these days.
Comment 6 Srikanth Sankaran CLA 2010-05-19 03:34:51 EDT
Jay, please follow up -- Thanks
Comment 7 Markus Keller CLA 2010-05-20 10:28:54 EDT
Moving back to UI. We still implement the actual OrganizeImportsOperation.
Comment 8 Dani Megert CLA 2010-05-21 02:32:02 EDT
> We still implement the actual OrganizeImportsOperation.
Ah, right.