78
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2006, 2007 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 module org.eclipse.core.internal.databinding.observable.tree.IChildrenCountUpdate;
|
81
|
12 import org.eclipse.core.internal.databinding.observable.tree.TreePath;
|
|
13 import org.eclipse.core.internal.databinding.observable.tree.IViewerUpdate;
|
78
|
14
|
|
15 import java.lang.all;
|
|
16
|
|
17 /**
|
|
18 * Request monitor used to collect the number of children for an element in a lazy
|
|
19 * observable tree.
|
|
20 *
|
|
21 * @since 3.3
|
|
22 */
|
|
23 public interface IChildrenCountUpdate : IViewerUpdate {
|
|
24
|
|
25 /**
|
|
26 * Returns the parent elements that children counts have been requested for
|
|
27 * as tree paths. An empty path identifies the root element.
|
|
28 *
|
|
29 * @return parent elements as tree paths
|
|
30 */
|
|
31 public TreePath[] getParents();
|
|
32
|
|
33 /**
|
|
34 * Sets the number of children for the given parent.
|
|
35 *
|
|
36 * @param parentPath
|
|
37 * parent element or empty path for root element
|
|
38 * @param numChildren
|
|
39 * number of children
|
|
40 */
|
|
41 public void setChildCount(TreePath parentPath, int numChildren);
|
|
42 }
|