mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-124877 Run Configurations: Allow sort configurations under type or folder node (Exception fix)
This commit is contained in:
@@ -1054,7 +1054,7 @@ class RunConfigurable extends BaseConfigurable {
|
||||
SingleConfigurationConfigurable.editSettings(settings, null);
|
||||
installUpdateListeners(configurationConfigurable);
|
||||
DefaultMutableTreeNode nodeToAdd = new DefaultMutableTreeNode(configurationConfigurable);
|
||||
myTreeModel.insertNodeInto(nodeToAdd, node, node.getIndex(selectedNode) + 1);
|
||||
myTreeModel.insertNodeInto(nodeToAdd, node, selectedNode != null ? node.getIndex(selectedNode) + 1 :node.getChildCount());
|
||||
TreeUtil.selectNode(myTree, nodeToAdd);
|
||||
return configurationConfigurable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user