From 1f7f89ed954ea4a0c17807e44d17c54c8a98dd0e Mon Sep 17 00:00:00 2001 From: Bas Leijdekkers Date: Mon, 17 Oct 2011 14:21:34 +0200 Subject: [PATCH] select text field on selecting "Use private key file" checkbox --- .../connections/ssh/ui/SshConnectionSettingsPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/connections/ssh/ui/SshConnectionSettingsPanel.java b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/connections/ssh/ui/SshConnectionSettingsPanel.java index 4d8261c4acd9..198fd4d9ce66 100644 --- a/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/connections/ssh/ui/SshConnectionSettingsPanel.java +++ b/plugins/cvs/cvs-plugin/src/com/intellij/cvsSupport2/connections/ssh/ui/SshConnectionSettingsPanel.java @@ -37,7 +37,8 @@ public class SshConnectionSettingsPanel { myPathToPrivateKeyFile.addBrowseFolderListener(CvsBundle.message("dialog.title.path.to.private.key.file"), CvsBundle.message("dialog.description.path.to.private.key.file"), null, FileChooserDescriptorFactory.createSingleFileNoJarsDescriptor()); - ActionListener actionListener = new ActionListener() { + final ActionListener actionListener = new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { setPathToPPKEnabled(); } @@ -61,6 +62,8 @@ public class SshConnectionSettingsPanel { } else { myPathToPrivateKeyFile.setEnabled(true); + myPathToPrivateKeyFile.getTextField().selectAll(); + myPathToPrivateKeyFile.getTextField().requestFocus(); } }