Community
Participate
Working Groups
I am using eclipse stable build M5 on debian linux "woody". Selecting a file and then using the menu "copy" causes an internal error: org.eclipse.swt.SWTError: Can not set data in clipboard at org.eclipse.swt.dnd.DND.error(DND.java:123) at org.eclipse.swt.dnd.DND.error(DND.java:104) at org.eclipse.swt.dnd.Clipboard.setContents(Clipboard.java:141) at org.eclipse.jdt.internal.ui.reorg.CopyResourcesToClipboardAction.run(CopyResourcesToClipboardAction.java:57) at org.eclipse.jdt.internal.ui.reorg.DualReorgAction.run(DualReorgAction.java:51) at org.eclipse.jface.action.Action.runWithEvent(Action.java:590) 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(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.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:819) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:190) at org.eclipse.core.launcher.Main.run(Main.java:549) at org.eclipse.core.launcher.Main.main(Main.java:390)
.
I will investigate if there is a specific problem on debian linux "woody" whereby the clipboard does not work at all. However, the application must also handle the SWTError "Can not set data in clipboard". This can happen if another application is using the clipboard and the clipboard is not available. For example if a large amount of data is being copied to the clipboard such as a large list of files accessed remotely on another server, it may be unavailable for a short period of time. CopyResourcesToClipboardAction.run must handle this case. I will update the javadoc for Clipboard.setContents() to reflect this.
Veronika, can you assign this report to me when you're done? thanks
This is not an SWT problem. Copying files works fine on Debian as long as the clipboard is available. Fix required in JDT UI. Moving to JDT UI.
*** Bug 15089 has been marked as a duplicate of this bug. ***
fixed - a dialog pops up now asking: "Retry?" a.
Fixed. Available in builds > 200200513