有个getSelection(),返回TableItem[]
或者,你的监听仿下面的
table.addSelectionListener( new SelectionAdapter() {
@Override
public void widgetSelected( SelectionEvent event ) {
log( "click: " + event.item );
}
@Override
public void widgetDefaultSelected( SelectionEvent event ) {
log( "double-click: " + event.item );
}
} );