Example usage for org.eclipse.jface.viewers ViewerComparator subclass-usage

List of usage examples for org.eclipse.jface.viewers ViewerComparator subclass-usage

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers ViewerComparator subclass-usage.

Usage

From source file alma.acs.eventbrowser.parts.ServiceViewerComparator.java

/**
 * Comparator used for node positions in ServiceSummaryPart and ChannelTreePart.
 * Code taken and extended from ChannelTreePart.NameComparator.
 * 
 * @author hsommer
 */

From source file at.bitandart.zoubek.mervin.util.vis.ThreeWayTreeViewerComparator.java

/**
 * A {@link ViewerComparator} and {@link SelectionListener} that can be applied
 * to {@link TreeColumn}s to provide the default three way (none, ascending,
 * descending) sorting behavior based on default {@link ViewerComparator}
 * implementation.
 * 

From source file at.medevit.elexis.gdt.ui.table.util.SortColumnComparator.java

public class SortColumnComparator extends ViewerComparator {
    public static final String SORT_BY = SortColumnComparator.class.getName() + ".sortBy";

    @SuppressWarnings("unchecked")
    @Override
    public int compare(Viewer viewer, Object e1, Object e2) {

From source file au.gov.ga.earthsci.discovery.ui.DiscoveryComparator.java

/**
 * {@link ViewerComparator} used to sort {@link IDiscovery}s in the discovery
 * part.
 * 
 * @author Michael de Hoog (michael.dehoog@ga.gov.au)
 */

From source file au.gov.ga.earthsci.discovery.ui.preferences.DiscoveryServiceComparator.java

/**
 * {@link ViewerComparator} used for sorting {@link IDiscoveryService} elements
 * in a {@link Viewer}.
 * 
 * @author Michael de Hoog (michael.dehoog@ga.gov.au)
 */

From source file cc.xuloo.rcputils.tables.sort.SortColumnComparator.java

/**
 * ColumnComparator is a ViewerComparator that uses table.getSortColumn() as
 * column to compare values. The column is queries for an IValue by the
 * column.getData(SORT_BY) and used this value to sort values. It also pays
 * attention to table.getSortDirection(), if it's DESC (SWT.DOWN), the values
 * are exchanged.

From source file ch.elexis.core.ui.contacts.views.comparator.ContactSelectorViewerComparator.java

public class ContactSelectorViewerComparator extends ViewerComparator {

    public static enum sorter {
        SORT_BY_FIRSTNAME("Vorname"), SORT_BY_FAMILYNAME("Nachname");

        public String label;

From source file ch.elexis.core.ui.views.rechnung.KonsZumVerrechnenViewViewerComparator.java

public class KonsZumVerrechnenViewViewerComparator extends ViewerComparator {
    @Override
    public int compare(Viewer viewer, Object e1, Object e2) {
        Tree lt1 = (Tree) e1;
        Tree lt2 = (Tree) e2;

From source file ch.elexis.views.rechnung.KonsZumVerrechnenViewViewerComparator.java

public class KonsZumVerrechnenViewViewerComparator extends ViewerComparator {
    @Override
    public int compare(Viewer viewer, Object e1, Object e2) {
        Tree lt1 = (Tree) e1;
        Tree lt2 = (Tree) e2;

From source file ch.hsr.ifs.cdt.metriculator.views.TableColumnViewerSorter.java

/**
 * @see http://bingjava.appspot.com/snippet.jsp?id=2207
 * @author Ueli Kunz
 * */
class TableColumnViewerSorter extends ViewerComparator {
    public static final int ASC = 1;