directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1436295 - in /directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor: KerberosServerPage.java OverviewPage.java
Date Mon, 21 Jan 2013 12:08:54 GMT
Author: pamarcelot
Date: Mon Jan 21 12:08:54 2013
New Revision: 1436295

URL: http://svn.apache.org/viewvc?rev=1436295&view=rev
Log:
Fixed the Key Derivation Interceptor activation (activated when  KDC Server is activated).

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

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.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/KerberosServerPage.java?rev=1436295&r1=1436294&r2=1436295&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java
Mon Jan 21 12:08:54 2013
@@ -20,10 +20,13 @@
 package org.apache.directory.studio.apacheds.configuration.v2.editor;
 
 
+import java.util.List;
+
 import org.apache.directory.api.ldap.model.exception.LdapInvalidDnException;
 import org.apache.directory.api.ldap.model.name.Dn;
 import org.apache.directory.server.config.beans.ChangePasswordServerBean;
 import org.apache.directory.server.config.beans.DirectoryServiceBean;
+import org.apache.directory.server.config.beans.InterceptorBean;
 import org.apache.directory.server.config.beans.KdcServerBean;
 import org.apache.directory.server.config.beans.TransportBean;
 import org.eclipse.swt.SWT;
@@ -54,7 +57,7 @@ public class KerberosServerPage extends 
     public static final String ID = KerberosServerPage.class.getName(); //$NON-NLS-1$
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("KerberosServerPage.KerberosServer");
//$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "KerberosServerPage.KerberosServer"
); //$NON-NLS-1$
 
     // UI Controls
     private Button enableKerberosCheckbox;
@@ -80,7 +83,8 @@ public class KerberosServerPage extends 
     {
         public void widgetSelected( SelectionEvent e )
         {
-            getKdcServerBean().setEnabled( enableKerberosCheckbox.getSelection() );
+            enableKerberosServer( getDirectoryServiceBean(), enableKerberosCheckbox.getSelection()
);
+
             setEnabled( kerberosPortText, enableKerberosCheckbox.getSelection() );
         }
     };
@@ -268,7 +272,7 @@ public class KerberosServerPage extends 
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("KerberosServerPage.KerberosServer") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "KerberosServerPage.KerberosServer" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -278,25 +282,27 @@ public class KerberosServerPage extends 
         section.setClient( composite );
 
         // Enable Kerberos Server Checkbox
-        enableKerberosCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.EnableKerberosServer"),
SWT.CHECK ); //$NON-NLS-1$
+        enableKerberosCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.EnableKerberosServer" ), SWT.CHECK );
//$NON-NLS-1$
         enableKerberosCheckbox
             .setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, gridLayout.numColumns,
1 ) );
 
         // Kerberos Server Port Text
         toolkit.createLabel( composite, TABULATION );
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.Port") );
//$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.Port" ) );
//$NON-NLS-1$
         kerberosPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "60088" ); //$NON-NLS-1$
 
         // Enable Change Password Server Checkbox
-        enableChangePasswordCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.EnableKerberosChangePassword"),
//$NON-NLS-1$
+        enableChangePasswordCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.EnableKerberosChangePassword" ), //$NON-NLS-1$
             SWT.CHECK );
         enableChangePasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false,
             gridLayout.numColumns, 1 ) );
 
         // Change Password Server Port Text
         toolkit.createLabel( composite, TABULATION );
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.Port") );
//$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.Port" ) );
//$NON-NLS-1$
         changePasswordPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "60464" ); //$NON-NLS-1$
     }
@@ -312,7 +318,7 @@ public class KerberosServerPage extends 
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("KerberosServerPage.KerberosSettings") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "KerberosServerPage.KerberosSettings" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -321,28 +327,28 @@ public class KerberosServerPage extends 
         section.setClient( composite );
 
         // KDC Principal Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.KdcPrincipal")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.KdcPrincipal"
) ); //$NON-NLS-1$
         kdcPrincipalText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( kdcPrincipalText, new GridData( SWT.FILL, SWT.NONE,
true, false ) );
         Label defaultSaslHostLabel = createDefaultValueLabel( toolkit, composite, "krbtgt/EXAMPLE.COM@EXAMPLE.COM"
); //$NON-NLS-1$
         defaultSaslHostLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false,
2, 1 ) );
 
         // SASL Principal Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.PrimaryKdcRealm")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.PrimaryKdcRealm"
) ); //$NON-NLS-1$
         primaryKdcRealmText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( primaryKdcRealmText, new GridData( SWT.FILL, SWT.NONE,
true, false ) );
         Label defaultSaslPrincipalLabel = createDefaultValueLabel( toolkit, composite, "EXAMPLE.COM"
); //$NON-NLS-1$
         defaultSaslPrincipalLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false, 2, 1 ) );
 
         // Search Base Dn Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.SearchBaseDn")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.SearchBaseDn"
) ); //$NON-NLS-1$
         kdcSearchBaseDnText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( kdcSearchBaseDnText, new GridData( SWT.FILL, SWT.NONE,
true, false ) );
         Label defaultSaslSearchBaseDnLabel = createDefaultValueLabel( toolkit, composite,
"ou=users,dc=example,dc=com" ); //$NON-NLS-1$
         defaultSaslSearchBaseDnLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false, 2, 1 ) );
 
         // Encryption Types Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.EncryptionTypes")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.EncryptionTypes"
) ); //$NON-NLS-1$
         encryptionTypesText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( encryptionTypesText, new GridData( SWT.FILL, SWT.NONE,
true, false ) );
         Label defaultEncryptionTypesLabel = createDefaultValueLabel( toolkit, composite,
"[des-cbc-md5]" ); //$NON-NLS-1$
@@ -360,7 +366,7 @@ public class KerberosServerPage extends 
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("KerberosServerPage.TicketSettings") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "KerberosServerPage.TicketSettings" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -369,49 +375,54 @@ public class KerberosServerPage extends 
         section.setClient( composite );
 
         // Verify Body Checksum Checkbox
-        verifyBodyChecksumCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.VerifyBodyChecksum"),
SWT.CHECK ); //$NON-NLS-1$
+        verifyBodyChecksumCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.VerifyBodyChecksum" ), SWT.CHECK ); //$NON-NLS-1$
         verifyBodyChecksumCheckbox
             .setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, layout.numColumns,
1 ) );
 
         // Allow Empty Addresse Checkbox
-        allowEmptyAddressesCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.AllowEmptyAddresses"),
SWT.CHECK ); //$NON-NLS-1$
+        allowEmptyAddressesCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.AllowEmptyAddresses" ), SWT.CHECK );
//$NON-NLS-1$
         allowEmptyAddressesCheckbox
             .setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, layout.numColumns,
1 ) );
 
         // Allow Forwardable Addresses Checkbox
-        allowForwardableAddressesCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.AllowForwadableAddresses"),
//$NON-NLS-1$
+        allowForwardableAddressesCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.AllowForwadableAddresses" ), //$NON-NLS-1$
             SWT.CHECK );
         allowForwardableAddressesCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE,
true, false,
             layout.numColumns, 1 ) );
 
         // Require Pre-Authentication By Encrypted Timestamp Checkbox
         requirePreAuthByEncryptedTimestampCheckbox = toolkit.createButton( composite,
-            Messages.getString("KerberosServerPage.RequirePreAuthentication"), SWT.CHECK
); //$NON-NLS-1$
+            Messages.getString( "KerberosServerPage.RequirePreAuthentication" ), SWT.CHECK
); //$NON-NLS-1$
         requirePreAuthByEncryptedTimestampCheckbox
             .setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, layout.numColumns,
1 ) );
 
         // Allow Postdated Tickets Checkbox
-        allowPostdatedTicketsCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.AllowPostdatedTickets"),
SWT.CHECK ); //$NON-NLS-1$
+        allowPostdatedTicketsCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.AllowPostdatedTickets" ), SWT.CHECK );
//$NON-NLS-1$
         allowPostdatedTicketsCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false, layout.numColumns,
             1 ) );
 
         // Allow Renewable Tickets Checkbox
-        allowRenewableTicketsCheckbox = toolkit.createButton( composite, Messages.getString("KerberosServerPage.AllowRenewableTickets"),
SWT.CHECK ); //$NON-NLS-1$
+        allowRenewableTicketsCheckbox = toolkit.createButton( composite,
+            Messages.getString( "KerberosServerPage.AllowRenewableTickets" ), SWT.CHECK );
//$NON-NLS-1$
         allowRenewableTicketsCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false, layout.numColumns,
             1 ) );
 
         // Max Renewable Lifetime Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.MaxRenewableLifetime")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.MaxRenewableLifetime"
) ); //$NON-NLS-1$
         maximumRenewableLifetimeText = createIntegerText( toolkit, composite );
         setGridDataWithDefaultWidth( maximumRenewableLifetimeText, new GridData( SWT.FILL,
SWT.NONE, true, false ) );
 
         // Max Ticket Lifetime Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.MaxTicketLifetime")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.MaxTicketLifetime"
) ); //$NON-NLS-1$
         maximumTicketLifetimeText = createIntegerText( toolkit, composite );
         setGridDataWithDefaultWidth( maximumTicketLifetimeText, new GridData( SWT.FILL, SWT.NONE,
true, false ) );
 
         // Allowable Clock Skew Text
-        toolkit.createLabel( composite, Messages.getString("KerberosServerPage.AllowableClockSkew")
); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "KerberosServerPage.AllowableClockSkew"
) ); //$NON-NLS-1$
         allowableClockSkewText = createIntegerText( toolkit, composite );
         setGridDataWithDefaultWidth( allowableClockSkewText, new GridData( SWT.FILL, SWT.NONE,
true, false ) );
 
@@ -645,6 +656,28 @@ public class KerberosServerPage extends 
 
 
     /**
+     * Enables the Kerberos Server.
+     *
+     * @param directoryServiceBean the directory service bean
+     * @param enableKerberosServer the enable kerberos flag
+     */
+    public static void enableKerberosServer( DirectoryServiceBean directoryServiceBean, boolean
enableKerberosServer )
+    {
+        // Enabling the KDC Server
+        getKdcServerBean( directoryServiceBean ).setEnabled( enableKerberosServer );
+
+        // Getting the Key Derivation Interceptor
+        InterceptorBean keyDerivationInterceptor = getKeyDerivationInterceptor( directoryServiceBean
);
+
+        if ( keyDerivationInterceptor != null )
+        {
+            // Enabling the Key Derivation Interceptor
+            keyDerivationInterceptor.setEnabled( enableKerberosServer );
+        }
+    }
+
+
+    /**
      * Gets the Change Password Server bean.
      *
      * @return
@@ -753,4 +786,29 @@ public class KerberosServerPage extends 
 
         return transportBean;
     }
+
+
+    /**
+     * Gets the Key Derivation Interceptor.
+     *
+     * @return the Key Derivation Interceptor.
+     */
+    private static InterceptorBean getKeyDerivationInterceptor( DirectoryServiceBean directoryServiceBean
)
+    {
+        if ( directoryServiceBean != null )
+        {
+            List<InterceptorBean> interceptors = directoryServiceBean.getInterceptors();
+
+            for ( InterceptorBean interceptor : interceptors )
+            {
+                if ( "org.apache.directory.server.core.kerberos.KeyDerivationInterceptor".equalsIgnoreCase(
interceptor
+                    .getInterceptorClassName() ) )
+                {
+                    return interceptor;
+                }
+            }
+        }
+
+        return null;
+    }
 }

Modified: directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/OverviewPage.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/OverviewPage.java?rev=1436295&r1=1436294&r2=1436295&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/OverviewPage.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/OverviewPage.java
Mon Jan 21 12:08:54 2013
@@ -62,7 +62,7 @@ public class OverviewPage extends Server
     public static final String ID = OverviewPage.class.getName(); //$NON-NLS-1$
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("OverviewPage.Overview"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "OverviewPage.Overview" ); //$NON-NLS-1$
 
     // UI Controls
     private Button enableLdapCheckbox;
@@ -128,8 +128,7 @@ public class OverviewPage extends Server
     {
         public void widgetSelected( SelectionEvent e )
         {
-            KdcServerBean kdcServerBean = getConfigBean().getDirectoryServiceBean().getKdcServerBean();
-            kdcServerBean.setEnabled( enableKerberosCheckbox.getSelection() );
+            KerberosServerPage.enableKerberosServer( getDirectoryServiceBean(), enableKerberosCheckbox.getSelection()
);
             setEnabled( kerberosPortText, enableKerberosCheckbox.getSelection() );
         }
     };
@@ -256,7 +255,7 @@ public class OverviewPage extends Server
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("OverviewPage.LdapLdapsServers") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "OverviewPage.LdapLdapsServers" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -266,28 +265,30 @@ public class OverviewPage extends Server
         section.setClient( composite );
 
         // Enable LDAP Server Checkbox
-        enableLdapCheckbox = toolkit.createButton( composite, Messages.getString("OverviewPage.EnableLdapServer"),
SWT.CHECK ); //$NON-NLS-1$
+        enableLdapCheckbox = toolkit.createButton( composite,
+            Messages.getString( "OverviewPage.EnableLdapServer" ), SWT.CHECK ); //$NON-NLS-1$
         enableLdapCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false,
gridLayout.numColumns, 1 ) );
 
         // LDAP Server Port Text
         toolkit.createLabel( composite, TABULATION );
-        toolkit.createLabel( composite, Messages.getString("OverviewPage.Port") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "OverviewPage.Port" ) ); //$NON-NLS-1$
         ldapPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "10389" ); //$NON-NLS-1$
 
         // Enable LDAPS Server Checkbox
-        enableLdapsCheckbox = toolkit.createButton( composite, Messages.getString("OverviewPage.EnableLdapsServer"),
SWT.CHECK ); //$NON-NLS-1$
+        enableLdapsCheckbox = toolkit.createButton( composite,
+            Messages.getString( "OverviewPage.EnableLdapsServer" ), SWT.CHECK ); //$NON-NLS-1$
         enableLdapsCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false,
gridLayout.numColumns, 1 ) );
 
         // LDAPS Server Port Text
         toolkit.createLabel( composite, TABULATION );
-        toolkit.createLabel( composite, Messages.getString("OverviewPage.Port") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "OverviewPage.Port" ) ); //$NON-NLS-1$
         ldapsPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "10636" ); //$NON-NLS-1$
 
         // LDAP Configuration Link
         openLdapConfigurationLink = toolkit.createHyperlink( composite,
-            Messages.getString("OverviewPage.AdvancedLdapLdapsConfiguration"), SWT.NONE );
//$NON-NLS-1$
+            Messages.getString( "OverviewPage.AdvancedLdapLdapsConfiguration" ), SWT.NONE
); //$NON-NLS-1$
         openLdapConfigurationLink.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false,
             gridLayout.numColumns, 1 ) );
         openLdapConfigurationLink.addHyperlinkListener( openLdapConfigurationLinkListener
);
@@ -304,7 +305,7 @@ public class OverviewPage extends Server
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("OverviewPage.KerberosServer") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "OverviewPage.KerberosServer" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -314,31 +315,33 @@ public class OverviewPage extends Server
         section.setClient( composite );
 
         // Enable Kerberos Server Checkbox
-        enableKerberosCheckbox = toolkit.createButton( composite, Messages.getString("OverviewPage.EnableKerberosServer"),
SWT.CHECK ); //$NON-NLS-1$
+        enableKerberosCheckbox = toolkit.createButton( composite,
+            Messages.getString( "OverviewPage.EnableKerberosServer" ), SWT.CHECK ); //$NON-NLS-1$
         enableKerberosCheckbox
             .setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, gridLayout.numColumns,
1 ) );
 
         // Kerberos Server Port Text
         toolkit.createLabel( composite, TABULATION );
-        toolkit.createLabel( composite, Messages.getString("OverviewPage.Port") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "OverviewPage.Port" ) ); //$NON-NLS-1$
         kerberosPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "60088" ); //$NON-NLS-1$
 
         // Enable Change Password Server Checkbox
-        enableChangePasswordCheckbox = toolkit.createButton( composite, Messages.getString("OverviewPage.EnableKerberosChangePasswordServer"),
//$NON-NLS-1$
+        enableChangePasswordCheckbox = toolkit.createButton( composite,
+            Messages.getString( "OverviewPage.EnableKerberosChangePasswordServer" ), //$NON-NLS-1$
             SWT.CHECK );
         enableChangePasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false,
             gridLayout.numColumns, 1 ) );
 
         // Change Password Server Port Text
         toolkit.createLabel( composite, TABULATION );
-        toolkit.createLabel( composite, Messages.getString("OverviewPage.Port") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "OverviewPage.Port" ) ); //$NON-NLS-1$
         changePasswordPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "60464" ); //$NON-NLS-1$
 
         // Kerberos Configuration Link
         openKerberosConfigurationLink = toolkit.createHyperlink( composite,
-            Messages.getString("OverviewPage.AdvancedKerberosConfiguration"), SWT.NONE );
//$NON-NLS-1$
+            Messages.getString( "OverviewPage.AdvancedKerberosConfiguration" ), SWT.NONE
); //$NON-NLS-1$
         openKerberosConfigurationLink.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false,
             gridLayout.numColumns, 1 ) );
         openKerberosConfigurationLink.addHyperlinkListener( openKerberosConfigurationLinkListener
);
@@ -355,7 +358,7 @@ public class OverviewPage extends Server
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("OverviewPage.Partitions") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "OverviewPage.Partitions" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -380,7 +383,7 @@ public class OverviewPage extends Server
 
         // Partitions Configuration Link
         openPartitionsConfigurationLink = toolkit.createHyperlink( composite,
-            Messages.getString("OverviewPage.AdvancedPartitionsConfiguration"), SWT.NONE
); //$NON-NLS-1$
+            Messages.getString( "OverviewPage.AdvancedPartitionsConfiguration" ), SWT.NONE
); //$NON-NLS-1$
         openPartitionsConfigurationLink.setLayoutData( new GridData( SWT.FILL, SWT.NONE,
true, false,
             gridLayout.numColumns, 1 ) );
         openPartitionsConfigurationLink.addHyperlinkListener( openPartitionsConfigurationLinkListener
);
@@ -397,7 +400,7 @@ public class OverviewPage extends Server
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("OverviewPage.Options") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "OverviewPage.Options" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
@@ -407,16 +410,18 @@ public class OverviewPage extends Server
         section.setClient( composite );
 
         // Allow Anonymous Access Checkbox
-        allowAnonymousAccessCheckbox = toolkit.createButton( composite, Messages.getString("OverviewPage.AllowAnonymousAccess"),
SWT.CHECK ); //$NON-NLS-1$
+        allowAnonymousAccessCheckbox = toolkit.createButton( composite,
+            Messages.getString( "OverviewPage.AllowAnonymousAccess" ), SWT.CHECK ); //$NON-NLS-1$
         allowAnonymousAccessCheckbox.setLayoutData( new GridData( SWT.NONE, SWT.NONE, true,
false ) );
 
         // Enable Access Control Checkbox
-        enableAccessControlCheckbox = toolkit.createButton( composite, Messages.getString("OverviewPage.EnableAccessControl"),
SWT.CHECK ); //$NON-NLS-1$
+        enableAccessControlCheckbox = toolkit.createButton( composite,
+            Messages.getString( "OverviewPage.EnableAccessControl" ), SWT.CHECK ); //$NON-NLS-1$
         enableAccessControlCheckbox.setLayoutData( new GridData( SWT.NONE, SWT.NONE, true,
false ) );
 
         // Options Configuration Link
         openOptionsConfigurationLink = toolkit.createHyperlink( composite,
-            Messages.getString("OverviewPage.AdvancedOptionsConfiguration"), SWT.NONE );
//$NON-NLS-1$
+            Messages.getString( "OverviewPage.AdvancedOptionsConfiguration" ), SWT.NONE );
//$NON-NLS-1$
         openOptionsConfigurationLink.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true,
false,
             gridLayout.numColumns, 1 ) );
         openOptionsConfigurationLink.addHyperlinkListener( openOptionsConfigurationLinkListener
);
@@ -556,11 +561,12 @@ public class OverviewPage extends Server
         List<PartitionBean> partitions = directoryServiceBean.getPartitions();
         if ( partitions.size() == 1 )
         {
-            partitionsLabel.setText( Messages.getString("OverviewPage.ThereIsOnePartitionDefined")
); //$NON-NLS-1$
+            partitionsLabel.setText( Messages.getString( "OverviewPage.ThereIsOnePartitionDefined"
) ); //$NON-NLS-1$
         }
         else
         {
-            partitionsLabel.setText( NLS.bind( Messages.getString("OverviewPage.ThereAreXPartitionsDefined"),
partitions.size() ) ); //$NON-NLS-1$
+            partitionsLabel.setText( NLS.bind(
+                Messages.getString( "OverviewPage.ThereAreXPartitionsDefined" ), partitions.size()
) ); //$NON-NLS-1$
         }
         partitionsTableViewer.setInput( partitions.toArray() );
 



Mime
View raw message