Button btnAdd = new Button(grpStaffdefProperties, SWT.NONE);
btnAdd.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
InsertStaffDefsDialogEntryWrapper newEntry = createNewEntry();
writableList.add(newEntry);
tableViewer.setSelection(new StructuredSelection(newEntry));
tableViewer.refresh();
}
});