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 com.wdev91.eclipse.copyright.viewers.CopyrightsComparator.java

public class CopyrightsComparator extends ViewerComparator {
    @Override
    public int compare(Viewer viewer, Object e1, Object e2) {
        return e1 == CopyrightManager.CUSTOM ? -1 : super.compare(viewer, e1, e2);
    }
}

From source file com.weiglewilczek.xwt.launcher.util.AbstractColumnViewerSorter.java

/**
 * Column Viewer Sorter support.
 * 
 * @author Ilya Shinkarenko
 * @author Daniela Blank
 * 

From source file com.xeviox.commons.ui.eclipse.jface.tableviewer.ColumnComparator.java

public class ColumnComparator<T> extends ViewerComparator {
    private final List<ColumnDescription<T>> descriptions;
    private int currentColIndex = -1;
    private Direction direction;
    private int sortColumn;

From source file de.bmw.yamaica.common.ui.utils.FileSystemComparator.java

public class FileSystemComparator extends ViewerComparator {
    protected static final int DIRECTORY = 1;
    protected static final int FILE = 2;

    protected Comparator<String> comparator = null;

From source file de.bmw.yamaica.common.ui.utils.ResourceComparator.java

public class ResourceComparator extends ViewerComparator {
    protected static final int CONTAINER = 1;
    protected static final int FILE = 2;

    protected Comparator<String> comparator = null;

From source file de.bmw.yamaica.common.ui.utils.WizardComparator.java

public class WizardComparator extends ViewerComparator {
    protected Comparator<String> comparator = null;

    @Override
    public int compare(Viewer viewer, Object e1, Object e2) {
        if (e1 instanceof IWizardDescriptor && e2 instanceof IWizardDescriptor) {

From source file de.bmw.yamaica.ea.ui.EAComparer.java

public class EAComparer extends ViewerComparator {
    public EAComparer() {

    }

    @Override

From source file de.quamoco.qm.properties.eval.provider.InfluencingOrRefiningElementComparator.java

/**
 * Provides a {@link ViewerComparator} for the
 * {@link InfluencingOrRefiningElement}s.<br>
 * First sorts by ranking, then by contribution points and then by name.
 * 
 * @author Franz Becker

From source file de.ralfebert.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 de.unistuttgart.ipvs.pmp.editor.ui.editors.internals.localetable.ColumnViewerSorter.java

public abstract class ColumnViewerSorter extends ViewerComparator {

    private int direction = SWT.NONE;

    public ColumnViewerSorter(final TableViewer tableViewer, TableViewerColumn columnViewer) {