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.IHasChildrenUpdate;
|
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 * Context sensitive update request for whether elements have children.
|
|
19 *
|
|
20 * @since 3.3
|
|
21 */
|
|
22 public interface IHasChildrenUpdate : IViewerUpdate {
|
|
23
|
|
24 /**
|
|
25 * The elements this request is for specified as tree paths. An empty path
|
|
26 * identifies the root element.
|
|
27 *
|
|
28 * @return elements as tree paths
|
|
29 */
|
|
30 public TreePath[] getElements();
|
|
31
|
|
32 /**
|
|
33 * Sets whether the given element has children.
|
|
34 *
|
|
35 * @param element
|
|
36 * tree path to element, or empty for root element
|
|
37 * @param hasChildren
|
|
38 * whether it has children
|
|
39 */
|
|
40 public void setHasChilren(TreePath element, bool hasChildren);
|
|
41 }
|