directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r882158 - /directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java
Date Thu, 19 Nov 2009 14:31:02 GMT
Author: pamarcelot
Date: Thu Nov 19 14:31:02 2009
New Revision: 882158

URL: http://svn.apache.org/viewvc?rev=882158&view=rev
Log:
Fix for DIRSTUDIO-594 ( The 'Show new password details' checkbox does not display the 'Enter
new password' text field as clear text when checked in the Password Editor).

Modified:
    directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java

Modified: directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java?rev=882158&r1=882157&r2=882158&view=diff
==============================================================================
--- directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java
(original)
+++ directory/studio/trunk/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/password/PasswordDialog.java
Thu Nov 19 14:31:02 2009
@@ -374,7 +374,7 @@
         newPasswordContainer.setLayout( newLayout );
 
         BaseWidgetUtils.createLabel( newPasswordContainer, Messages.getString( "PasswordDialog.EnterNewPassword"
), 1 ); //$NON-NLS-1$
-        newPasswordText = BaseWidgetUtils.createPasswordText( newPasswordContainer, "", 1
); //$NON-NLS-1$
+        newPasswordText = BaseWidgetUtils.createText( newPasswordContainer, "", 1 ); //$NON-NLS-1$
         newPasswordText.addModifyListener( new ModifyListener()
         {
             public void modifyText( ModifyEvent e )
@@ -578,12 +578,14 @@
         // show password details?
         if ( showNewPasswordDetailsButton.getSelection() )
         {
+            newPasswordText.setEchoChar( '\0' );
             newPasswordPreviewText.setEchoChar( '\0' );
             newPasswordPreviewValueHexText.setEchoChar( '\0' );
             newPasswordPreviewSaltHexText.setEchoChar( '\0' );
         }
         else
         {
+            newPasswordText.setEchoChar( '\u2022' );
             newPasswordPreviewText.setEchoChar( newPasswordPreviewText.getText()
                 .equals( Utils.getNonNullString( null ) ) ? '\0' : '\u2022' );
             newPasswordPreviewValueHexText.setEchoChar( newPasswordPreviewValueHexText.getText().equals(



Mime
View raw message