Example usage for Java org.eclipse.jface.viewers ViewerComparator fields, constructors, methods, implement or subclass
The text is from its open source code.
ViewerComparator() Creates a new ViewerComparator , which uses the default comparator to sort strings. | |
ViewerComparator(Comparator super String> comparator) Creates a new ViewerComparator , which uses the given comparator to sort strings. |
int | compare(Viewer viewer, Object e1, Object e2) Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element. |
void | sort(final Viewer viewer, Object[] elements) Sorts the given elements in-place, modifying the given array. |