KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > edit > provider > ITreeItemContentProvider


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: ITreeItemContentProvider.java,v 1.2 2005/06/08 06:17:05 nickb Exp $
16  */

17 package org.eclipse.emf.edit.provider;
18
19
20 import java.util.Collection JavaDoc;
21
22
23 /**
24  * This is the interface needed to populate subtrees in a TreeViewer.
25  */

26 public interface ITreeItemContentProvider extends IStructuredItemContentProvider
27 {
28   /**
29    * This does the same thing as ITreeContentProvider.getChildren.
30    */

31   public Collection JavaDoc getChildren(Object JavaDoc object);
32
33   /**
34    * This does the same thing as ITreeContentProvider.hasChildren.
35    */

36   public boolean hasChildren(Object JavaDoc object);
37
38   /**
39    * This does the same thing as ITreeContentProvider.getParent.
40    */

41   public Object JavaDoc getParent(Object JavaDoc object);
42 }
43
Popular Tags