Bug 4375 - Move CU - import computation should be smart
Summary: Move CU - import computation should be smart
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 4271
Blocks:
  Show dependency tree
 
Reported: 2001-10-11 10:18 EDT by Dirk Baeumer CLA
Modified: 2002-01-29 09:54 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2001-10-11 10:18:54 EDT
- load JUnit into the workspace
- add package junit.dummy
- add class A in junit.dummy
- move A to util.
- you end up having the following code

package junit.util;
import junit.dummy.*;

public class A {

}

- move should be smarter when generating import statements. Only import types
  that are needed.
Comment 1 Adam Kiezun CLA 2001-10-18 10:32:03 EDT
waiting for 4271
Comment 2 Adam Kiezun CLA 2002-01-29 09:54:01 EST
fixed - trade off is of course performance.
only needed types are imported.
imports to types from the destination package are removed altogether.