A viewer sorter is used by a
StructuredViewer to reorder the elements
provided by its content provider.
The default compare method compares elements using two steps.
The first step uses the values returned from category .
By default, all elements are in the same category.
The second level is based on a case insensitive compare of the strings obtained
from the content viewer's label provider via ILabelProvider.getText .
Subclasses may implement the isSorterProperty method;
they may reimplement the category method to provide
categorization; and they may override the compare methods
to provide a totally different way of sorting elements.
It is recommended to use ViewerComparator instead.
See Also: IStructuredContentProvider See Also: StructuredViewer |