Search in sources :

Example 1 with HistoricalDataLabelProvider

use of org.netxms.ui.eclipse.perfview.views.helpers.HistoricalDataLabelProvider in project netxms by netxms.

the class HistoricalDataView method createPartControl.

/* (non-Javadoc)
	 * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
	 */
@Override
public void createPartControl(Composite parent) {
    final String[] names = (tableName != null) ? new String[] { Messages.get().HistoricalDataView_ColTimestamp, Messages.get().HistoricalDataView_ColValue } : new String[] { Messages.get().HistoricalDataView_ColTimestamp, Messages.get().HistoricalDataView_ColValue, "Raw value" };
    final int[] widths = { 150, 400, 400 };
    viewer = new SortableTableViewer(parent, names, widths, 0, SWT.DOWN, SWT.FULL_SELECTION | SWT.MULTI);
    viewer.setContentProvider(new ArrayContentProvider());
    viewer.setLabelProvider(new HistoricalDataLabelProvider());
    viewer.setComparator(new HistoricalDataComparator());
    createActions();
    contributeToActionBars();
    createPopupMenu();
    refreshData();
}
Also used : HistoricalDataLabelProvider(org.netxms.ui.eclipse.perfview.views.helpers.HistoricalDataLabelProvider) ArrayContentProvider(org.eclipse.jface.viewers.ArrayContentProvider) SortableTableViewer(org.netxms.ui.eclipse.widgets.SortableTableViewer) HistoricalDataComparator(org.netxms.ui.eclipse.perfview.views.helpers.HistoricalDataComparator)

Aggregations

ArrayContentProvider (org.eclipse.jface.viewers.ArrayContentProvider)1 HistoricalDataComparator (org.netxms.ui.eclipse.perfview.views.helpers.HistoricalDataComparator)1 HistoricalDataLabelProvider (org.netxms.ui.eclipse.perfview.views.helpers.HistoricalDataLabelProvider)1 SortableTableViewer (org.netxms.ui.eclipse.widgets.SortableTableViewer)1