TreeViewerColumn column;
final String[] names = {
"Kind", "Function", org.erlide.debug.ui.views.ActionMessages.getString("DebuggerTraceView.5") }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
for (final String name : names) {
column = new TreeViewerColumn(viewer, SWT.NONE);
final TreeColumn treeColumn = column.getColumn();
treeColumn.setResizable(true);
treeColumn.setMoveable(true);
treeColumn.addSelectionListener(new SelectionListener() {
@Override
public void widgetDefaultSelected(final SelectionEvent e) {
}
@Override
public void widgetSelected(final SelectionEvent e) {
}
});
// column.getColumn().setData(MARKER_FIELD, markerField);
// Show the help in the first column
column.setLabelProvider(new ColumnLabelProvider());
treeColumn.setText(name);
treeColumn.setToolTipText(name);
}
// column = new TreeViewerColumn(viewer, SWT.NONE);
// treeColumn = column.getColumn();
// treeColumn.setResizable(true);
// treeColumn.setMoveable(true);