List of usage examples for org.eclipse.jface.viewers TableViewer getLabelProvider
@Override
public IBaseLabelProvider getLabelProvider()
Viewer
framework method returns the label provider, which in the case of table viewers will be an instance of either ITableLabelProvider
or ILabelProvider
. From source file:SEURAT.search.SearchResultPage_NumericTableSorter.java
License:Open Source License
/** * @param pSortColumn the id of the table column to sort on * @param pViewer the table viewer which will be using this sorter class *//*from w w w.j a v a 2 s.co m*/ public SearchResultPage_NumericTableSorter(int pSortColumn, TableViewer pViewer) { super(); m_SortColumn = pSortColumn; m_TableViewer = pViewer; m_TableLabelProvider = ((ITableLabelProvider) pViewer.getLabelProvider()); // Initialize To True, Then When Activated For The First Time Direction // Will Not Be Reversed m_ReverseDirection = true; }
From source file:SEURAT.search.SearchResultPage_StringTableSorter.java
License:Open Source License
/** * @param pSortColumn the id of the table column to sort on * @param pViewer the table viewer which will be sorted *///from w w w . j a v a 2s .co m public SearchResultPage_StringTableSorter(int pSortColumn, TableViewer pViewer) { super(); m_SortColumn = pSortColumn; m_TableViewer = pViewer; m_TableLabelProvider = ((ITableLabelProvider) pViewer.getLabelProvider()); // Initialize To True, Then When Activated For The First Time Direction // Will Not Be Reversed m_ReverseDirection = true; }