Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 416919

Summary: Error dialog details can't be copied
Product: [RT] RAP Reporter: Andreas Blochberger <andreas.blochberger>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.1   
Target Milestone: 2.2 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Andreas Blochberger CLA 2013-09-10 09:28:50 EDT
In the class org.eclipse.jface.dialogs.ErrorDialog, there is a popup menu entry, to copy the details of the error to the clipboard. 
But this does not work. Reason why it does not work is the commented code:
	private void copyToClipboard() {
	// RAP [bm]: 
//		if (clipboard != null) {
//			clipboard.dispose();
//		}
//		StringBuffer statusBuffer = new StringBuffer();
//		populateCopyBuffer(status, statusBuffer, 0);
//		clipboard = new Clipboard(list.getDisplay());
//		clipboard.setContents(new Object[] { statusBuffer.toString() },
//				new Transfer[] { TextTransfer.getInstance() });
	}

The menu should also be commented out, or the functionality implemented.
Comment 1 Ivan Furnadjiev CLA 2013-09-10 10:06:46 EDT
(In reply to comment #0)
> The menu should also be commented out, or the functionality implemented.
Clipboard is not supported in RAP. Remove copy to clipboard menu with commit 7ed681d24ff6ab470d9a4f2b0f79d7e2e19be0a1.