Eclipse Platform
Release 3.2

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.

This interface is not intended to be implemented by clients.

Since:
3.2
See Also:
INavigatorContentService.getSorterService(), ViewerSorter

Method Summary
 ViewerSorter findSorter(INavigatorContentDescriptor source, java.lang.Object parent, java.lang.Object lvalue, java.lang.Object rvalue)
          Return a ViewerSorter from an extension which is visible to the associated INavigatorContentService and whose parentExpression matches the given parent.
 ViewerSorter findSorterForParent(java.lang.Object aParent)
          Return a ViewerSorter from an extension which is visible to the associated INavigatorContentService and whose parentExpression matches the given parent.
 

Method Detail

findSorterForParent

ViewerSorter findSorterForParent(java.lang.Object aParent)
Return a ViewerSorter from an extension which is visible to the associated INavigatorContentService and whose parentExpression matches the given parent.

Parameters:
aParent - An element from the tree
Returns:
An applicable ViewerSorter or simple ViewerSorter if no sorter is found.

findSorter

ViewerSorter findSorter(INavigatorContentDescriptor source,
                        java.lang.Object parent,
                        java.lang.Object lvalue,
                        java.lang.Object rvalue)
Return a ViewerSorter from an extension which is visible to the associated INavigatorContentService and whose parentExpression matches the given parent.

Parameters:
source - The source of the element.
parent - An element from the tree
lvalue - An element from the tree
rvalue - An element from the tree
Returns:
An applicable ViewerSorter or simple ViewerSorter if no sorter is found.

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.