Project: JDT
Bug 197102 [dnd] Import not moved on member move
Reported: 2007-07-19 05:37:02 | Status: resolved fixed

I20070717-1020 Given: package test; import java.util.List; public class E01 { List l; } package test; public class E02 {} 1. Open both CUs in editor 2. Select Editor for E01 3. Move 'l' per DnD from E01 to E02 Is: Import is moved, great 4. Save all 5. Move 'l' per DnD from E02 to E01 Is: Import is not moved Should: Be moved It only works if the drag source is shown in the active editor, very strange...

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/Move/testDestination_fieldWithImportMoveAcross/in/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Move/testDestination_fieldWithImportMoveAcross/in/B.java org.eclipse.jdt.ui.tests.refactoring/resources/Move/testDestination_fieldWithImportMoveAcross/out/A.java org.eclipse.jdt.ui.tests.refactoring/resources/Move/testDestination_fieldWithImportMoveAcross/out/B.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ccp/MoveTest.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgPolicyFactory.java