diff options
author | kh5325.kim <kh5325.kim@samsung.com> | 2013-07-26 12:13:06 +0900 |
---|---|---|
committer | kh5325.kim <kh5325.kim@samsung.com> | 2013-07-26 12:23:00 +0900 |
commit | f66b4744943fc51915c3b9c9bacce1da55671cd2 (patch) | |
tree | 2372b358d33c0f953f30401a0572162043de8892 | |
parent | 0eaa862e890fcb57de8dd4ecd07de982964fbdf4 (diff) | |
download | common-eplugin-f66b4744943fc51915c3b9c9bacce1da55671cd2.tar.gz common-eplugin-f66b4744943fc51915c3b9c9bacce1da55671cd2.tar.bz2 common-eplugin-f66b4744943fc51915c3b9c9bacce1da55671cd2.zip |
Cleared password text when p12 file is selected
-rw-r--r-- | org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java b/org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java index 3922bebba..0954649fd 100644 --- a/org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java +++ b/org.tizen.common.sign/src/org/tizen/common/sign/ui/ProfileItemDialog.java @@ -59,6 +59,8 @@ public class ProfileItemDialog extends StatusDialog { protected boolean bEnableCA; protected SigningProfileItem item; + private Text txtPassword; + /** * Constructor @@ -129,15 +131,15 @@ public class ProfileItemDialog extends StatusDialog { // label.setFont( JFaceResources.getFontRegistry().getBold( JFaceResources.DIALOG_FONT ) ); // } - final Text text = new Text( composite, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD ); + txtPassword = new Text( composite, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD ); GridData textLayoutData = new GridData( GridData.FILL_HORIZONTAL ); textLayoutData.horizontalSpan = 2; - text.setLayoutData( textLayoutData ); - text.setText( this.data.get( key ) ); - text.addModifyListener( new ModifyListener() { + txtPassword.setLayoutData( textLayoutData ); + txtPassword.setText( this.data.get( key ) ); + txtPassword.addModifyListener( new ModifyListener() { @Override public void modifyText(ModifyEvent modifyevent) { - data.put( key, text.getText() ); + data.put( key, txtPassword.getText() ); } } ); @@ -181,6 +183,9 @@ public class ProfileItemDialog extends StatusDialog { if ( value != null ) { text.setText( value ); + if ( key == ItemDataKey.keyPath ) { + txtPassword.setText( "" ); + } } } } ); |