1 | TableItem mouseBasedTableItem = table.getItem(point);↵ | | 1 | TableItem mouseBasedTableItem = table.getItem(point);↵
|
2 | if (mouseBasedTableItem == null)↵ | | 2 | if (mouseBasedTableItem == null)↵
|
3 | {↵ | | 3 | {↵
|
4 | table.setSelection(i);↵ | | 4 | table.setSelection(i);↵
|
5 | Event selectionEvent = new Event();↵ | | 5 | Event selectionEvent = new Event();↵
|
6 | selectionEvent.widget = table;↵ | | 6 | selectionEvent.widget = table;↵
|
7 | selectionEvent.item = tableItem;↵ | | 7 | selectionEvent.item = tableItem;↵
|
8 | table.notifyListeners(SWT.Selection, selectionEvent);↵ | | 8 | table.notifyListeners(SWT.Selection, selectionEvent);↵
|
9 | selectedTableItem = tableItem;↵ | | 9 | selectedTableItem = tableItem;↵
|
10 | } | | 10 | }
|