Example usage for org.eclipse.jface.viewers TableViewer getLabelProvider

List of usage examples for org.eclipse.jface.viewers TableViewer getLabelProvider

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers TableViewer getLabelProvider.

Prototype

@Override
public IBaseLabelProvider getLabelProvider() 

Source Link

Document

The table viewer implementation of this Viewer framework method returns the label provider, which in the case of table viewers will be an instance of either ITableLabelProvider or ILabelProvider.

Usage

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;
}