Search in sources :

Example 1 with AbstractSTViewer

use of org.eclipse.linuxtools.dataviewers.abstractviewers.AbstractSTViewer in project linuxtools by eclipse.

the class STColumnSizeListener method handleEvent.

@Override
public void handleEvent(Event event) {
    if (hideshowMng != null) {
        Item column = (Item) event.widget;
        AbstractSTViewer stViewer = hideshowMng.getSTViewer();
        int width = stViewer.getColumnWidth(column);
        hideshowMng.setWidth(stViewer.getColumnIndex(column), width);
    }
}
Also used : Item(org.eclipse.swt.widgets.Item) AbstractSTViewer(org.eclipse.linuxtools.dataviewers.abstractviewers.AbstractSTViewer)

Aggregations

AbstractSTViewer (org.eclipse.linuxtools.dataviewers.abstractviewers.AbstractSTViewer)1 Item (org.eclipse.swt.widgets.Item)1