StructuredViewer to reorder the elements
provided by its content provider.
compare method compares elements using two steps.
The first step uses the values returned from
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
Subclasses may implement the
isSorterProperty method; they may
category method to provide categorization; and
they may override the
compare methods to provide a totally
different way of sorting elements.
collatorThe collator used to sort strings.
ViewerSorterpublic ViewerSorter()Deprecated.Creates a new viewer sorter, which uses the default collator to sort strings.
(Collator collator)Deprecated.Creates a new viewer sorter, which uses the given collator to sort strings.
collator- the collator to use to sort strings
getCollatorReturns the collator used to sort strings.
- the collator used to sort strings