public interface INavigatorSorterService
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.
INavigatorContentService.getSorterService()
,
ViewerSorter
Modifier and Type | Method and Description |
---|---|
Map |
findAvailableSorters(INavigatorContentDescriptor theSource)
Find and return all viewer sorters associated with the given descriptor.
|
ViewerSorter |
findSorter(INavigatorContentDescriptor source,
Object parent,
Object lvalue,
Object rvalue)
Return a
ViewerSorter from an extension which is visible to the
associated INavigatorContentService and whose parentExpression
matches the given parent. |
ViewerSorter |
findSorterForParent(Object aParent)
Return a
ViewerSorter from an extension which is visible to the
associated INavigatorContentService and whose parentExpression
matches the given parent. |
ViewerSorter findSorterForParent(Object aParent)
ViewerSorter
from an extension which is visible to the
associated INavigatorContentService
and whose parentExpression
matches the given parent.aParent
- An element from the treeViewerSorter
if no
sorter is found.ViewerSorter findSorter(INavigatorContentDescriptor source, Object parent, Object lvalue, Object rvalue)
ViewerSorter
from an extension which is visible to the
associated INavigatorContentService
and whose parentExpression
matches the given parent.source
- The source of the element.parent
- An element from the treelvalue
- An element from the treervalue
- An element from the treeViewerSorter
if no
sorter is found.Map findAvailableSorters(INavigatorContentDescriptor theSource)
The commonSorter element is not required to have an id, so in some cases, an auto-generated id, using the content extension id as a base, is generated to ensure the map is properly filled with all available sorters. No guarantees are given as to the order or consistency of these generated ids between invocations.
theSource
- A descriptor that identifies a particular content extensionINavigatorContentService.getContentDescriptorById(String)
,
INavigatorContentService.getContentExtensionById(String)
,
INavigatorContentExtension.getDescriptor()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.