public class WorkbenchViewerSorter extends ViewerSorter
IWorkbenchAdaptercollator| Constructor and Description |
|---|
WorkbenchViewerSorter()
Creates a workbench viewer sorter using the default collator.
|
WorkbenchViewerSorter(Collator collator)
Creates a workbench viewer sorter using the given collator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSorterProperty(Object element,
String propertyId)
Returns whether this viewer sorter would be affected
by a change to the given property of the given element.
|
getCollator, getComparatorcategory, compare, sortpublic WorkbenchViewerSorter()
public WorkbenchViewerSorter(Collator collator)
collator - the collator to use to sort stringspublic boolean isSorterProperty(Object element, String propertyId)
ViewerComparator
The default implementation of this method returns false.
Subclasses may reimplement.
isSorterProperty in class ViewerComparatorelement - the elementpropertyId - the propertytrue if the sorting would be affected,
and false if it would be unaffectedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.