Bug 516935

Summary: Swap selection with clipboard contents former selection area
Product: [Eclipse Project] Platform Reporter: Marco Descher <marco>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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