Update Tree structure and selection without async mode

This commit is contained in:
Alexander Lobas
2012-06-04 19:18:24 +04:00
parent 94e69692bc
commit f72d26c800
@@ -139,12 +139,17 @@ public final class TreeEditableArea implements EditableArea, FeedbackTreeLayer,
if (value == null) {
myTreeBuilder.select(ArrayUtil.EMPTY_OBJECT_ARRAY, null);
myTree.clearSelection();
}
else if (value instanceof RadComponent) {
myTreeBuilder.select(value);
}
else {
myTreeBuilder.select(((Collection)value).toArray(), null);
Collection collection = (Collection)value;
myTreeBuilder.select(collection.toArray(), null);
if (collection.isEmpty()) {
myTree.clearSelection();
}
}
hookSelection();