1

When I select a row in my table, there is no way to deselect that row. Unless there is two rows in the table. Then I can select the other row. Now the 2nd row is selected and the 1st row is deselected. I thought by selecting the selected row again, that would deselect the row. But that does not seem to be the case for me.

viewer = new AplotDataTableViewer(parent, SWT.BORDER|SWT.V_SCROLL|SWT.MULTI|SWT.FULL_SELECTION);

I really don't want to have to create a button to deselect current selections.

4

1 回答 1

1

TableViewer.setSelection(StructuredSelection.EMPTY) was the way I corrected the issue.

Sambi Reddy provided me with the solution

于 2013-05-24T14:40:09.717 回答