Search in sources :

Example 1 with TableLabelProvider

use of org.netxms.ui.eclipse.objecttools.views.helpers.TableLabelProvider in project netxms by netxms.

the class TableToolResults method createPartControl.

/* (non-Javadoc)
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
@Override
public void createPartControl(Composite parent) {
    viewer = new SortableTableViewer(parent, SWT.FULL_SELECTION | SWT.MULTI);
    viewer.setContentProvider(new TableContentProvider());
    viewer.setLabelProvider(new TableLabelProvider());
    createActions();
    contributeToActionBars();
    createPopupMenu();
}
Also used : TableContentProvider(org.netxms.ui.eclipse.objecttools.views.helpers.TableContentProvider) SortableTableViewer(org.netxms.ui.eclipse.widgets.SortableTableViewer) TableLabelProvider(org.netxms.ui.eclipse.objecttools.views.helpers.TableLabelProvider)

Aggregations

TableContentProvider (org.netxms.ui.eclipse.objecttools.views.helpers.TableContentProvider)1 TableLabelProvider (org.netxms.ui.eclipse.objecttools.views.helpers.TableLabelProvider)1 SortableTableViewer (org.netxms.ui.eclipse.widgets.SortableTableViewer)1