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 org.eclipse.wazaabi.engine.swt.commons.views.collections.DynamicComparatorProvider.java

public class DynamicComparatorProvider extends ViewerComparator {

    private AbstractCodeDescriptor.MethodDescriptor getCategoryMethodDescriptor = null;
    private AbstractCodeDescriptor.MethodDescriptor getCompareMethodDescriptor = null;
    private AbstractCodeDescriptor.MethodDescriptor getIsSorterPropertyMethodDescriptor = null;
    private AbstractCodeDescriptor.MethodDescriptor getSortMethodDescriptor = null;

From source file org.eclipse.wb.swt.TableViewerColumnSorter.java

/**
 * Helper for sorting {@link TableViewer} by one of its {@link TableViewerColumn}s.
 * <p>
 * Originally from http://wiki.eclipse.org/index.php/JFaceSnippets, Snippet040TableViewerSorting.
 * 
 * @author Tom Schindl <tom.schindl@bestsolution.at>

From source file org.eclipse.wst.dtd.ui.views.contentoutline.DTDContentOutlineComparator.java

/**
 * Comparator for the outline. Allows sorting of regular DTD elements, but not
 * their content models since the ordering there is important.
 */
class DTDContentOutlineComparator extends ViewerComparator {

From source file org.eclipse.wst.ide.remote.ui.internal.view.RequestComparator.java

public class RequestComparator extends ViewerComparator {
    /*
     * @see ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
     */
    public int compare(Viewer viewer, Object o1, Object o2) {
        if (o1 instanceof Request && o2 instanceof Request) {

From source file org.eclipse.wst.internet.monitor.ui.internal.view.RequestComparator.java

public class RequestComparator extends ViewerComparator {
    /*
     * @see ViewerSorter#compare(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
     */
    public int compare(Viewer viewer, Object o1, Object o2) {
        if (o1 instanceof Request && o2 instanceof Request) {

From source file org.eclipse.wst.jsdt.internal.ui.typehierarchy.AbstractHierarchyViewerSorter.java

/**
  */
public abstract class AbstractHierarchyViewerSorter extends ViewerComparator {

    private static final int OTHER = 1;
    private static final int CLASS = 2;

From source file org.eclipse.wst.jsdt.internal.ui.viewsupport.SourcePositionComparator.java

/**
 *  Viewer sorter which sorts the Java elements like
 *  they appear in the source.
 * 
 * 
 */

From source file org.eclipse.wst.jsdt.internal.ui.wizards.buildpaths.CPListElementSorter.java

public class CPListElementSorter extends ViewerComparator {

    private static final int SOURCE = 0;
    private static final int PROJECT = 1;
    private static final int LIBRARY = 2;
    private static final int CONTAINER = 4;

From source file org.eclipse.wst.jsdt.ui.JavaScriptElementComparator.java

/**
 * Viewer comparator for JavaScript elements. Ordered by element category, then by element name. 
 * Package fragment roots are sorted as ordered on the classpath.
 * 
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.

From source file org.eclipse.wst.server.ui.internal.view.servers.ServerViewerComparator.java

public class ServerViewerComparator extends ViewerComparator {
    public static final int MAX_DEPTH = 3;
    public static final int ASCENDING = 1;
    public static final int DESCENDING = -1;

    protected ServerTableLabelProvider labelProvider;