directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1035224 - /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
Date Mon, 15 Nov 2010 11:03:52 GMT
Author: pamarcelot
Date: Mon Nov 15 11:03:51 2010
New Revision: 1035224

URL: http://svn.apache.org/viewvc?rev=1035224&view=rev
Log:
Replaced default Hash Mechanism text widget by a combo widget.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java?rev=1035224&r1=1035223&r2=1035224&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LdapLdapsServersPage.java
Mon Nov 15 11:03:51 2010
@@ -26,6 +26,7 @@ import org.eclipse.swt.SWT;
 import org.eclipse.swt.layout.GridData;
 import org.eclipse.swt.layout.GridLayout;
 import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Combo;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.widgets.Table;
@@ -198,12 +199,16 @@ public class LdapLdapsServersPage extend
         Button enableTlsCheckbox = toolkit.createButton( composite, "Enable TLS", SWT.CHECK
);
         enableTlsCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 3,
1 ) );
 
-        Button enableServerSidePasswordHashingCheckbox = toolkit.createButton( composite,
"Enable sever-side password hashing",
+        Button enableServerSidePasswordHashingCheckbox = toolkit.createButton( composite,
+            "Enable sever-side password hashing",
             SWT.CHECK );
         enableServerSidePasswordHashingCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE,
true, false, 3, 1 ) );
         toolkit.createLabel( composite, "Hashing Method:" );
-        Text hashingMethodText = toolkit.createText( composite, "" );
-        hashingMethodText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false )
);
+        Combo hashingMethodCombo = new Combo( composite, SWT.DROP_DOWN | SWT.READ_ONLY );
+        hashingMethodCombo.setItems( new String[]
+            { "SSHA", "MD5" } );
+        toolkit.adapt( hashingMethodCombo );
+        hashingMethodCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false )
);
         createDefaultValueLabel( toolkit, composite, "SSHA" );
     }
 



Mime
View raw message