KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > debug > internal > ui > viewers > ILabelResult


1 /*******************************************************************************
2  * Copyright (c) 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.debug.internal.ui.viewers;
12
13 import org.eclipse.jface.viewers.TreePath;
14 import org.eclipse.swt.graphics.Image;
15
16
17 /**
18  * Results of collecting an asynchronous label in a tree.
19  *
20  * @since 3.2
21  */

22 public interface ILabelResult {
23
24     /**
25      * Returns the labels for the element. One for each column.
26      *
27      * @return
28      */

29     public String JavaDoc[] getLabels();
30     
31     /**
32      * Returns the images for the element.
33      *
34      * @return
35      */

36     public Image[] getImages();
37     
38     /**
39      * Returns the element the label is for.
40      *
41      * @return
42      */

43     public Object JavaDoc getElement();
44     
45     /**
46      * Returns the path to the element in the tree.
47      *
48      * @return
49      */

50     public TreePath getTreePath();
51     
52     /**
53      * Returns this element's depth in the tree.
54      *
55      * @return
56      */

57     public int getDepth();
58 }
59
Popular Tags