comparison org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/viewers/LeafNodesSet.d @ 85:6be48cf9f95c

Work on databinding
author Frank Benoit <benoit@tionex.de>
date Sat, 18 Apr 2009 13:54:50 +0200
parents 0a55d2d5a946
children
comparison
equal deleted inserted replaced
84:fcf926c91ca4 85:6be48cf9f95c
33 * This set consists of all leaf nodes from the given tree (that is, all nodes 33 * This set consists of all leaf nodes from the given tree (that is, all nodes
34 * for which ITreeProvider.createChildSet returns null). 34 * for which ITreeProvider.createChildSet returns null).
35 */ 35 */
36 public class LeafNodesSet : AbstractObservableSet { 36 public class LeafNodesSet : AbstractObservableSet {
37 37
38 private HashSet leafNodes = new HashSet(); 38 private HashSet leafNodes;
39 39
40 private HashMap mapElementsOntoNodeInfo = new HashMap(); 40 private HashMap mapElementsOntoNodeInfo;
41 41
42 private IUnorderedTreeProvider tree; 42 private IUnorderedTreeProvider tree;
43 43
44 private Object input; 44 private Object input;
45 45
118 * root of the tree 118 * root of the tree
119 * @param tree 119 * @param tree
120 * tree whose leaf nodes will be computed 120 * tree whose leaf nodes will be computed
121 */ 121 */
122 public this(Object initialInput, IUnorderedTreeProvider tree) { 122 public this(Object initialInput, IUnorderedTreeProvider tree) {
123 leafNodes = new HashSet();
124 mapElementsOntoNodeInfo = new HashMap();
123 super(tree.getRealm()); 125 super(tree.getRealm());
124 this.tree = tree; 126 this.tree = tree;
125 if (initialInput !is null) { 127 if (initialInput !is null) {
126 setInput(initialInput); 128 setInput(initialInput);
127 } 129 }