public class WorkbenchViewerComparator extends ViewerComparator
IWorkbenchAdapter| Constructor and Description |
|---|
WorkbenchViewerComparator()
Creates a workbench viewer sorter using the default collator.
|
WorkbenchViewerComparator(Comparator comparator)
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.
|
category, compare, getComparator, sortpublic WorkbenchViewerComparator()
public WorkbenchViewerComparator(Comparator comparator)
comparator - the comparator 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 unaffected
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.