Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354478 - CTRL-C on Table Page does not work always
Summary: CTRL-C on Table Page does not work always
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-11 07:31 EDT by mge CLA
Modified: 2021-08-19 11:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.