diff options
-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( "" ); + } } } } ); |