Package org.eclipse.ui.navigator
Interface INavigatorSorterService
public interface INavigatorSorterService
Provides an interface to extensions declared in
org.eclipse.ui.navigator.navigatorContent/commonSorter.
Like other extensions to the Common Navigator framework, sorters defined by
the above extension point must be bound to the associated
INavigatorContentService through a
org.eclipse.ui.navigator.viewer/viewerContentBinding extension.
- Since:
- 3.2
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionfindAvailableSorters(INavigatorContentDescriptor theSource) Find and return all viewer sorters associated with the given descriptor.findComparator(INavigatorContentDescriptor source, Object parent, Object lvalue, Object rvalue) Return aViewerComparatorfrom an extension which is visible to the associatedINavigatorContentServiceand whose parentExpression matches the given parent.findComparatorForParent(Object aParent) Return aViewerComparatorfrom an extension which is visible to the associatedINavigatorContentServiceand whose parentExpression matches the given parent.findSorter(INavigatorContentDescriptor source, Object parent, Object lvalue, Object rvalue) Deprecated, for removal: This API element is subject to removal in a future version.findSorterForParent(Object aParent) Deprecated, for removal: This API element is subject to removal in a future version.UsefindComparatorForParent(Object)instead
-
Method Details
-
findSorterForParent
Deprecated, for removal: This API element is subject to removal in a future version.UsefindComparatorForParent(Object)insteadReturn aViewerSorterfrom an extension which is visible to the associatedINavigatorContentServiceand whose parentExpression matches the given parent.- Parameters:
aParent- An element from the tree- Returns:
- An applicable ViewerSorter or simple
ViewerSorterif no sorter is found.
-
findComparatorForParent
Return aViewerComparatorfrom an extension which is visible to the associatedINavigatorContentServiceand whose parentExpression matches the given parent.- Parameters:
aParent- An element from the tree- Returns:
- An applicable ViewerComparator or simple
ViewerComparatorif no sorter is found. - Since:
- 3.13
-
findComparator(INavigatorContentDescriptor, Object, Object, Object)instead.