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

Bug 354478

Summary: CTRL-C on Table Page does not work always
Product: z_Archived Reporter: mge
Component: ScoutAssignee: Project Inbox <scout.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description mge CLA 2011-08-11 07:31:19 EDT
Build Identifier: 3.7.0.2011-Jun 2011

PROBLEM DESCRIPTION:
1. If a TablePage is configured to be droppable but not draggable, CTRL-C on the page will not work.
2. Related to this problem is the fact that for draggable pages, CTRL-C will only copy the object returned by the overriden method execDrag to the clipboard, instead of the latter and additionally the contents of the corresponding table as text.
3. The copied rows of a table contain the text "null" if the corresponding column is emtpy

EVALUATION:
1. For draggable or droppable pages, P_SwingRowTransferHandler avoids the execution of exportToClipboard if canDrag() returns false.
2. createTransferable only returns the Object returned by execDrag.
3. getValue() ist converted to a String in toString() of Cell.java.

PROPOSED SOLUTION:
1.& 2. Override exportToClipboard and enhance createTransferable of P_SwingRowTransferHandler to meet the requirements.
3. Adapt toString() of class Cell.
Comment 1 Matthias Zimmermann CLA 2017-06-06 05:51:43 EDT
Closed. The bug is over 5 years old and does no longer seem relevant/important enough. In case you do not agree with closing it, reopen the bug and present your case (again), thanks.