mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Update Tree structure and selection without async mode
This commit is contained in:
+6
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user