KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jface > viewers > ITreeSelection


1 /*******************************************************************************
2  * Copyright (c) 2005, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jface.viewers;
12
13 /**
14  * A selection containing tree paths.
15  *
16  * @since 3.2
17  *
18  */

19 public interface ITreeSelection extends IStructuredSelection {
20
21     /**
22      * Returns the paths in this selection
23      *
24      * @return the paths in this selection
25      */

26     public TreePath[] getPaths();
27
28     /**
29      * Returns the paths in this selection whose last segment is equal
30      * to the given element
31      *
32      * @param element the element to get the tree paths for
33      *
34      * @return the array of tree paths
35      */

36     public TreePath[] getPathsFor(Object JavaDoc element);
37
38 }
39
Popular Tags