if (columns == null) {
return;
}
String[] columnProperties = new String[columns.length];
TableColumn sortColumn = null;
for (ServiceViewColumn column : columns) {
columnProperties[columnIndex] = column.name();
TableColumn tableColumn = new TableColumn(table, SWT.NONE, columnIndex++);
tableColumn.setData(column);
tableColumn.setText(column.name());
tableColumn.setWidth(column.getWidth());
tableColumn.addSelectionListener(new ColumnSortListener(tableViewer));
if (column == ServiceViewColumn.Name) {
sortColumn = tableColumn;
}