Project: Eclipse_Platform_UI
Bug 18047 Internal Error copying a file in the navigator.
Reported: 2002-05-28 10:16:59 | Status: resolved fixed

Build F1 + UI Head stream. Create a project A with a file a.txt Select the file and press "Ctrl C", "Ctrl V". I dialog will popup asking the user for a new name. Press cancel. The following exception will be logged. BTW: I liked the old behavior better. It did what the file system does. I.e. it would create a file called "Copy of a.txt". org.eclipse.swt.SWTException: Failed to execute runnable (org.eclipse.core.runtime.OperationCanceledException) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:78) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1095) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1078) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24) *** Stack trace of contained exception *** org.eclipse.core.runtime.OperationCanceledException at org.eclipse.ui.internal.UIWorkspaceLock.doPendingWork (UIWorkspaceLock.java:54) at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer.java:23) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1504) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1292) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java:133) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.actions.CopyFilesAndFoldersOperation.copyResources (CopyFilesAndFoldersOperation.java:125) at org.eclipse.ui.views.navigator.PasteAction.run(PasteAction.java:84) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) at org.eclipse.ui.actions.TextActionHandler$PasteActionHandler.runWithEvent (TextActionHandler.java:199) at org.eclipse.ui.actions.RetargetAction.runWithEvent (RetargetAction.java:155) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1095) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1078) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/CopyFilesAndFoldersOperation.java