1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00

Hide text in password and passphrase fields.

Signed-off-by: Greg Watson <g.watson@computer.org>
This commit is contained in:
Greg Watson 2013-09-23 15:11:03 -04:00
parent 950f2d8bbb
commit 446ee9f33f

View file

@ -168,7 +168,7 @@ public class JSchConnectionPage extends WizardPage {
Label passwordLabel = new Label(controls, SWT.NONE); Label passwordLabel = new Label(controls, SWT.NONE);
passwordLabel.setText(Messages.JSchNewConnectionPage_Password); passwordLabel.setText(Messages.JSchNewConnectionPage_Password);
passwordLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false)); passwordLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
fPasswordText = new Text(controls, SWT.BORDER | SWT.SINGLE); fPasswordText = new Text(controls, SWT.BORDER | SWT.SINGLE | SWT.PASSWORD);
fPasswordText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); fPasswordText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
// Key option box // Key option box
@ -193,7 +193,7 @@ public class JSchConnectionPage extends WizardPage {
Label passphraseLabel = new Label(controls, SWT.NONE); Label passphraseLabel = new Label(controls, SWT.NONE);
passphraseLabel.setText(Messages.JSchNewConnectionPage_Passphrase); passphraseLabel.setText(Messages.JSchNewConnectionPage_Passphrase);
passphraseLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false)); passphraseLabel.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false));
fPassphraseText = new Text(controls, SWT.BORDER | SWT.SINGLE); fPassphraseText = new Text(controls, SWT.BORDER | SWT.SINGLE | SWT.PASSWORD);
fPassphraseText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); fPassphraseText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
fPasswordButton.setSelection(true); fPasswordButton.setSelection(true);