mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
select text field on selecting "Use private key file" checkbox
This commit is contained in:
+4
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user