public abstract class GenericTableComparator
extends org.eclipse.jface.viewers.ViewerComparator
Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING |
static int |
DESCENDING |
protected int |
direction |
protected int |
propertyIndex |
Constructor and Description |
---|
GenericTableComparator(int defaultColumnIndex,
int direction)
Creates an instance of a sorter for TableViewer.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
compare(org.eclipse.jface.viewers.Viewer viewer,
java.lang.Object e1,
java.lang.Object e2)
Must be Overriden in each view.
|
void |
setColumn(int column) |
protected int propertyIndex
public static final int ASCENDING
public static final int DESCENDING
protected int direction
Copyright © 2007–2020. All rights reserved.