Eclipse Platform
Release 3.2

org.eclipse.jface.viewers
Interface ITreeSelection

All Superinterfaces:
ISelection, IStructuredSelection
All Known Implementing Classes:
TreeSelection

public interface ITreeSelection
extends IStructuredSelection

A selection containing tree paths.

Since:
3.2

Method Summary
 TreePath[] getPaths()
          Returns the paths in this selection
 TreePath[] getPathsFor(Object element)
          Returns the paths in this selection whose last segment is equal to the given element
 
Methods inherited from interface org.eclipse.jface.viewers.IStructuredSelection
getFirstElement, iterator, size, toArray, toList
 
Methods inherited from interface org.eclipse.jface.viewers.ISelection
isEmpty
 

Method Detail

getPaths

public TreePath[] getPaths()
Returns the paths in this selection

Returns:
the paths in this selection

getPathsFor

public TreePath[] getPathsFor(Object element)
Returns the paths in this selection whose last segment is equal to the given element

Parameters:
element - the element to get the tree paths for
Returns:
the array of tree paths

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

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