I have a cross-platform SWT/Jface application with tables. Some table cells may content muli-line values separated by \n symbol. They display normally under Linux: they are expanded along the column increasing the cell height. But in MacOS they are collapsed and I can see the full contents of a cell only when I hover the mouse over it. See my gif screencast.
How to configure a table so that it displays the entire contents of a cell under MacOS?
tableViewer2 = new TableViewer(group, SWT.BORDER | SWT.FULL_SELECTION);
tableViewer2.setLabelProvider(getLabelProvider());
Table table = tableViewer2.getTable();
table.setHeaderVisible(true);
table.setLinesVisible(true);
if (null == data2)
table.removeAll();
else {
tableViewer2.setInput(data2);
for (int i = 0; i < table.getColumnCount(); i++)
table.getColumn(i).pack();
}
