Bug 516935 - Swap selection with clipboard contents former selection area
Summary: Swap selection with clipboard contents former selection area
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-19 04:09 EDT by Marco Descher CLA
Modified: 2017-05-19 04:09 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 Marco Descher CLA 2017-05-19 04:09:43 EDT
I want to propose the following feature

Assume the following code

1 TableViewerColumn tvcInvoiceNo = new TableViewerColumn(tableViewerInvoiceList, SWT.NONE);
2 TableColumn tblclmnInvoiceNo = tvcInvoiceNo.getColumn();
3 tcl_compositeInvoiceList.setColumnData(tblclmnInvoiceNo, new ColumnWeightData(1, ColumnWeightData.MINIMUM_WIDTH, true));
4 tblclmnInvoiceNo.setText("invoiceNo");
5 		
6 TableViewerColumn tvcInvoiceState = new TableViewerColumn(tableViewerInvoiceList, SWT.NONE);
7 TableColumn tblclmnInvoiceState = tvcInvoiceState.getColumn();
8 tcl_compositeInvoiceList.setColumnData(tblclmnInvoiceState, new ColumnPixelData(80, true, true));
9 tblclmnInvoiceState.setText("invoiceState");

Now I want to SWAP the ColumnWeightData in line 3 with the ColumnPixelData in line 8. So I would like eclipse to be able to handle this as follows

1) Select the constructor in line 3 "new ColumnWeightData(1, ColumnWeightData.MINIMUM_WIDTH, true)"
2) CTRL+C to copy into clipboard
3) Select the constructor in line 8 "new ColumnPixelData(80, true, true)"
4) PRESS CTRL+S (or something else) to have the original selection as done in step 1 swap position with the selection in step 3