mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
applying selection
This commit is contained in:
@@ -294,7 +294,12 @@ public class TreeState implements JDOMExternalizable {
|
||||
public void applyTo(final JTree tree, final DefaultMutableTreeNode node) {
|
||||
applyExpanded(getFacade(tree), node);
|
||||
if (tree.getSelectionCount() == 0) {
|
||||
applySelected(tree, node);
|
||||
getFacade(tree).getInitialized().doWhenDone(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
applySelected(tree, node);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user