Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 14029 - Copy files causes an internal error
Summary: Copy files causes an internal error
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux-Motif
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 15089 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-17 12:56 EDT by Alex Cozzi CLA
Modified: 2002-05-13 04:15 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Cozzi CLA 2002-04-17 12:56:51 EDT
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)
Comment 1 Mike Wilson CLA 2002-04-17 13:24:23 EDT
.
Comment 2 Veronika Irvine CLA 2002-04-19 08:42:21 EDT
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.
Comment 3 Adam Kiezun CLA 2002-04-19 09:01:26 EDT
Veronika, can you assign this report to me when you're done?
thanks
Comment 4 Veronika Irvine CLA 2002-05-02 12:38:57 EDT
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.
Comment 5 Adam Kiezun CLA 2002-05-03 08:43:03 EDT
*** Bug 15089 has been marked as a duplicate of this bug. ***
Comment 6 Adam Kiezun CLA 2002-05-03 09:06:37 EDT
fixed - a dialog pops up now asking: "Retry?"
a.
Comment 7 Dani Megert CLA 2002-05-13 04:15:57 EDT
Fixed.
Available in builds > 200200513