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();
}
Aggregations