Project: JDT
Bug 8023 coreexception when draging packages to its own parent
Reported: 2002-01-22 12:32:55 | Status: verified fixed

1. drag a package ot its parent project, say 'Yes' to replace 4 org.eclipse.jdt.core 966 Core exception: Problems encountered while moving resources. org.eclipse.core.internal.resources.ResourceException: Problems encountered while moving resources. at org.eclipse.core.internal.resources.Workspace.move (Workspace.java:1020) at org.eclipse.jdt.internal.core.JavaModelOperation.moveResources (JavaModelOperation.java:439) at org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processPackageFragme ntResource(CopyResourceElementsOperation.java:325) at org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processElement (CopyResourceElementsOperation.java:269) at org.eclipse.jdt.internal.core.MultiOperation.processElements (MultiOperation.java:181) at org.eclipse.jdt.internal.core.CopyResourceElementsOperation.processElements (CopyResourceElementsOperation.java:283) at org.eclipse.jdt.internal.core.MultiOperation.executeOperation (MultiOperation.java:85) at org.eclipse.jdt.internal.core.JavaModelOperation.execute (JavaModelOperation.java:268) at org.eclipse.jdt.internal.core.JavaModelOperation.run (JavaModelOperation.java:476) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1232) at org.eclipse.jdt.internal.core.JavaModelManager.runOperation (JavaModelManager.java:1133) at org.eclipse.jdt.internal.core.JavaElement.runOperation (JavaElement.java:526) at org.eclipse.jdt.internal.core.JavaModel.runOperation (JavaModel.java:486) at org.eclipse.jdt.internal.core.JavaModel.move(JavaModel.java:451) at org.eclipse.jdt.internal.core.PackageFragment.move (PackageFragment.java:264) at org.eclipse.jdt.internal.corext.refactoring.changes.MovePackageChange.doPerform (MovePackageChange.java:28) at org.eclipse.jdt.internal.corext.refactoring.changes.PackageReorgChange.perform (PackageReorgChange.java:40) at org.eclipse.jdt.internal.corext.refactoring.CompositeChange.createUndoList (CompositeChange.java:119) at org.eclipse.jdt.internal.corext.refactoring.CompositeChange.perform (CompositeChange.java:144) at org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation$1.execute (PerformChangeOperation.java:146) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run (WorkspaceModifyOperation.java:64) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1232) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.executeChange (PerformChangeOperation.java:151) at org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.run (PerformChangeOperation.java:125) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.reorg.ReorgAction.perform (ReorgAction.java:82) at org.eclipse.jdt.internal.ui.reorg.ReorgDestinationAction.doReorg (ReorgDestinationAction.java:147) at org.eclipse.jdt.internal.ui.reorg.MoveAction.doReorg (MoveAction.java:195) at org.eclipse.jdt.internal.ui.reorg.ReorgDestinationAction.run (ReorgDestinationAction.java:108) at org.eclipse.jdt.internal.ui.reorg.MoveAction.run(MoveAction.java:186) at org.eclipse.jdt.internal.ui.packageview.SelectionTransferDropAdapter.handleDropM ove(SelectionTransferDropAdapter.java:153) at org.eclipse.jdt.internal.ui.packageview.SelectionTransferDropAdapter.drop (SelectionTransferDropAdapter.java:109) at org.eclipse.jdt.internal.ui.dnd.JdtViewerDropAdapter.drop (JdtViewerDropAdapter.java:107) at org.eclipse.jdt.internal.ui.dnd.DelegatingDropAdapter.drop (DelegatingDropAdapter.java:73) at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:59) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.dnd.DropTarget.notifyListeners(DropTarget.java:514) at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:452) at org.eclipse.swt.dnd.DropTarget.access$7(DropTarget.java:380) at org.eclipse.swt.dnd.DropTarget$4.method6(DropTarget.java:180) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:109) at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method) at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:248) at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:229) at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:119) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:1504) at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:827) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:878) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:321) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/reorg/ReorgRefactoring.java