Dies ist eine alte Version des Dokuments!
Table, Auswahl ändern
org.eclipse.swt.widgets.Table
org.eclipse.jface.viewers.TableViewer
Table myTable = ... myTable.setSelection(indx); // Scrollt im Bedarfsfall // myTable.select(indx); // Scrollt nicht myTable.setFocus(); // Ohne diese Zeile wird die Selection nicht erkannt?!
oder:
Table myTable = ... ISelection selection = new StructuredSelection(myTable.getItem(indx).getData()); myTable.getViewer().setSelection(selection); myTable.setFocus(); // Ohne diese Zeile wird die Selection nicht erkannt?!