Class FlatteningTreeContentProvider

  • All Implemented Interfaces:
    IContentProvider, IStructuredContentProvider, ITreeContentProvider

    public class FlatteningTreeContentProvider
    extends Object
    implements ITreeContentProvider
    The tree content provider that flattens the given node classes of the source tree content provider. For example, given the tree path a -> b -> c and the instruction to flatten nodes of class b, the node path will be transformed to a -> c. More practical example, you have NavigatorContentProvider on hands but you want to show only the contents of Catalogs node attached directly to the top-level project nodes. To achieve this, you need to instruct the FlatteningTreeContentProvider to flatten the CatalogNavigatorAdapter.Folder node and setup the tree viewer filter to show only IWorkspaceRoot, IProject and Catalog nodes.