Table table = viewer.getTable();
int columnCount = table.getColumnCount();
for (int columnNum = 0; columnNum < columnCount; columnNum++) {
TableColumn column = table.getColumn(columnNum);
int originalWidth = column.getWidth();
column.pack();
int newWidth = column.getWidth();
if (newWidth < originalWidth) {
column.setWidth(originalWidth);
}
}