IDEA-140912 Run/Debug Configurations / Pressing Enter while naming the folder exits Dialog

This commit is contained in:
Vassiliy.Kudryashov
2015-07-16 00:44:43 +03:00
parent e1f0dbc2f0
commit f2f8185891
@@ -353,6 +353,12 @@ class RunConfigurable extends BaseConfigurable {
myTreeModel.reload(node);
}
});
textField.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
myTree.requestFocus();
}
});
p.add(new JLabel("Folder name:"), "gapright 5");
p.add(textField, "pushx, growx, wrap");
p.add(new JLabel(ExecutionBundle.message("run.configuration.rename.folder.disclaimer")), "gaptop 5, spanx 2");