Commits

Anonymous committed c48f188

Comments (0)

Files changed (18)

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/ApacheDS2ConfigurationPlugin.java

             // Checking if no error occurred when loading the schemas
             if ( schemaManager.getErrors().size() != 0 )
             {
-                throw new Exception( Messages.getString("ApacheDS2ConfigurationPlugin.CouldNotLoadSchemaCorrectly") ); //$NON-NLS-1$
+                throw new Exception( Messages.getString( "ApacheDS2ConfigurationPlugin.CouldNotLoadSchemaCorrectly" ) ); //$NON-NLS-1$
             }
         }
 

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/actions/EditorExportConfigurationAction.java

      */
     public String getText()
     {
-        return Messages.getString("EditorExportConfigurationAction.ExportConfiguration"); //$NON-NLS-1$
+        return Messages.getString( "EditorExportConfigurationAction.ExportConfiguration" ); //$NON-NLS-1$
     }
 
 
         }
         catch ( Exception e )
         {
-            MessageDialog.openError( editor.getSite().getShell(), Messages.getString("EditorExportConfigurationAction.ErrorExportingConfigurationFile"), //$NON-NLS-1$
-                NLS.bind( Messages.getString("EditorExportConfigurationAction.AnErrorOccurredWhenExportingTheSelectedFile"), e.getMessage() ) ); //$NON-NLS-1$
+            MessageDialog
+                .openError( editor.getSite().getShell(),
+                    Messages.getString( "EditorExportConfigurationAction.ErrorExportingConfigurationFile" ), //$NON-NLS-1$
+                    NLS.bind(
+                        Messages
+                            .getString( "EditorExportConfigurationAction.AnErrorOccurredWhenExportingTheSelectedFile" ), e.getMessage() ) ); //$NON-NLS-1$
         }
     }
 }

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/actions/EditorImportConfigurationAction.java

  */
 public class EditorImportConfigurationAction extends Action
 {
-    private static final String DIALOG_TITLE = Messages.getString("EditorImportConfigurationAction.SelectConfigurationFile"); //$NON-NLS-1$
+    private static final String DIALOG_TITLE = Messages
+        .getString( "EditorImportConfigurationAction.SelectConfigurationFile" ); //$NON-NLS-1$
 
     /** The associated editor */
     private ServerConfigurationEditor editor;
      */
     public String getText()
     {
-        return Messages.getString("EditorImportConfigurationAction.ImportConfiguration"); //$NON-NLS-1$
+        return Messages.getString( "EditorImportConfigurationAction.ImportConfiguration" ); //$NON-NLS-1$
     }
 
 
                 if ( !MessageDialog
                     .openConfirm(
                         editor.getSite().getShell(),
-                        Messages.getString("EditorImportConfigurationAction.UnsavedModifications"), //$NON-NLS-1$
-                        Messages.getString("EditorImportConfigurationAction.ConfigurationHasUnsavedModificationsSureToContinue") ) ) //$NON-NLS-1$
+                        Messages.getString( "EditorImportConfigurationAction.UnsavedModifications" ), //$NON-NLS-1$
+                        Messages
+                            .getString( "EditorImportConfigurationAction.ConfigurationHasUnsavedModificationsSureToContinue" ) ) ) //$NON-NLS-1$
                 {
                     return;
                 }
             if ( !MessageDialog
                 .openConfirm(
                     editor.getSite().getShell(),
-                    Messages.getString("EditorImportConfigurationAction.OverwriteExistingConfiguration"), //$NON-NLS-1$
-                    Messages.getString("EditorImportConfigurationAction.AreYouSureYouWantToOverwriteTheExistingConfiguration") ) ) //$NON-NLS-1$
+                    Messages.getString( "EditorImportConfigurationAction.OverwriteExistingConfiguration" ), //$NON-NLS-1$
+                    Messages
+                        .getString( "EditorImportConfigurationAction.AreYouSureYouWantToOverwriteTheExistingConfiguration" ) ) ) //$NON-NLS-1$
             {
                 return;
             }
             MessageDialog
                 .openError(
                     editor.getSite().getShell(),
-                    Messages.getString("EditorImportConfigurationAction.ErrorImportingConfigurationFile"), //$NON-NLS-1$
+                    Messages.getString( "EditorImportConfigurationAction.ErrorImportingConfigurationFile" ), //$NON-NLS-1$
                     NLS.bind(
-                        Messages.getString("EditorImportConfigurationAction.AnErrorOccurredWhenImportingTheSelectedFile"), //$NON-NLS-1$
+                        Messages
+                            .getString( "EditorImportConfigurationAction.AnErrorOccurredWhenImportingTheSelectedFile" ), //$NON-NLS-1$
                         e.getMessage() ) );
         }
     }
         ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog( editor.getSite().getShell(),
             new WorkbenchLabelProvider(), new WorkbenchContentProvider() );
         dialog.setInput( ResourcesPlugin.getWorkspace().getRoot() );
-        dialog.setMessage( Messages.getString("EditorImportConfigurationAction.SelectConfigurationFileToImport") ); //$NON-NLS-1$
+        dialog.setMessage( Messages.getString( "EditorImportConfigurationAction.SelectConfigurationFileToImport" ) ); //$NON-NLS-1$
         dialog.setTitle( DIALOG_TITLE );
         dialog.setAllowMultiple( false );
         dialog.setStatusLineAboveButtons( false );

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/dialogs/AttributeValueDialog.java

     protected void configureShell( Shell newShell )
     {
         super.configureShell( newShell );
-        newShell.setText( Messages.getString("AttributeValueDialog.AttributeValueDialog") ); //$NON-NLS-1$
+        newShell.setText( Messages.getString( "AttributeValueDialog.AttributeValueDialog" ) ); //$NON-NLS-1$
     }
 
 
         composite.setLayoutData( new GridData( GridData.FILL, GridData.FILL, true, true ) );
 
         Label attributeLabel = new Label( composite, SWT.NONE );
-        attributeLabel.setText( Messages.getString("AttributeValueDialog.Attribute") ); //$NON-NLS-1$
+        attributeLabel.setText( Messages.getString( "AttributeValueDialog.Attribute" ) ); //$NON-NLS-1$
 
         attributeText = new Text( composite, SWT.BORDER );
         attributeText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
 
         Label valueLabel = new Label( composite, SWT.NONE );
-        valueLabel.setText( Messages.getString("AttributeValueDialog.Value") ); //$NON-NLS-1$
+        valueLabel.setText( Messages.getString( "AttributeValueDialog.Value" ) ); //$NON-NLS-1$
 
         valueText = new Text( composite, SWT.BORDER );
         valueText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ConnectionServerConfigurationInput.java

      */
     public String getToolTipText()
     {
-        return NLS.bind( Messages.getString("ConnectionServerConfigurationInput.ConnectionConfiguration"), connection.getName() ); //$NON-NLS-1$
+        return NLS.bind(
+            Messages.getString( "ConnectionServerConfigurationInput.ConnectionConfiguration" ), connection.getName() ); //$NON-NLS-1$
     }
 
 
      */
     public String getName()
     {
-        return NLS.bind( Messages.getString("ConnectionServerConfigurationInput.ConnectionConfiguration"), connection.getName() ); //$NON-NLS-1$
+        return NLS.bind(
+            Messages.getString( "ConnectionServerConfigurationInput.ConnectionConfiguration" ), connection.getName() ); //$NON-NLS-1$
     }
 
 

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ErrorPage.java

     public static final String ID = ErrorPage.class.getName();
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("ErrorPage.ErrorOpeningEditor"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "ErrorPage.ErrorOpeningEditor" ); //$NON-NLS-1$
 
-    private static final String DETAILS_CLOSED = NLS.bind( "{0} >>", Messages.getString("ErrorPage.Details") ); //$NON-NLS-1$ //$NON-NLS-2$
-    private static final String DETAILS_OPEN = NLS.bind( "<< {0}", Messages.getString("ErrorPage.Details") ); //$NON-NLS-1$ //$NON-NLS-2$
+    private static final String DETAILS_CLOSED = NLS.bind( "{0} >>", Messages.getString( "ErrorPage.Details" ) ); //$NON-NLS-1$ //$NON-NLS-2$
+    private static final String DETAILS_OPEN = NLS.bind( "<< {0}", Messages.getString( "ErrorPage.Details" ) ); //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The exception */
     private Exception exception;
     protected void createFormContent( IManagedForm managedForm )
     {
         ScrolledForm form = managedForm.getForm();
-        form.setText( Messages.getString("ErrorPage.ErrorOpeningEditor") ); //$NON-NLS-1$
+        form.setText( Messages.getString( "ErrorPage.ErrorOpeningEditor" ) ); //$NON-NLS-1$
         form.setImage( Display.getCurrent().getSystemImage( SWT.ICON_ERROR ) );
 
         parent = form.getBody();
         // Initializing with the exception
         if ( exception == null )
         {
-            errorLabel.setText( Messages.getString("ErrorPage.CouldNotOpenEditor") ); //$NON-NLS-1$
+            errorLabel.setText( Messages.getString( "ErrorPage.CouldNotOpenEditor" ) ); //$NON-NLS-1$
             detailsButton.setVisible( false );
         }
         else

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/KerberosServerPage.java

             if ( ( getKdcServerBean().getKrbEncryptionTypes().size() == 1 ) && ( event.getChecked() == false ) )
             {
                 // Displaying an error to the user
-                CommonUIUtils.openErrorDialog( Messages.getString( "KerberosServerPage.AtLeastOneEncryptionTypeMustBeSelected" ) ); //$NON-NLS-1$
+                CommonUIUtils.openErrorDialog( Messages
+                    .getString( "KerberosServerPage.AtLeastOneEncryptionTypeMustBeSelected" ) ); //$NON-NLS-1$
 
                 // Reverting the current checked state
                 encryptionTypesTableViewer.setChecked( event.getElement(), !event.getChecked() );

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

     public static final String ID = LdapLdapsServersPage.class.getName(); //$NON-NLS-1$
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("LdapLdapsServersPage.LdapLdapsServers"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "LdapLdapsServersPage.LdapLdapsServers" ); //$NON-NLS-1$
 
     // UI Controls
     private Button enableLdapCheckbox;
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("LdapLdapsServersPage.LdapLdapsServers") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "LdapLdapsServersPage.LdapLdapsServers" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
         section.setClient( composite );
 
         // Enable LDAP Server Checkbox
-        enableLdapCheckbox = toolkit.createButton( composite, Messages.getString("LdapLdapsServersPage.EnableLdapServer"), SWT.CHECK ); //$NON-NLS-1$
+        enableLdapCheckbox = toolkit.createButton( composite,
+            Messages.getString( "LdapLdapsServersPage.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("LdapLdapsServersPage.Port") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.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("LdapLdapsServersPage.EnableLdapsServer"), SWT.CHECK ); //$NON-NLS-1$
+        enableLdapsCheckbox = toolkit.createButton( composite,
+            Messages.getString( "LdapLdapsServersPage.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("LdapLdapsServersPage.Port") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.Port" ) ); //$NON-NLS-1$
         ldapsPortText = createPortText( toolkit, composite );
         createDefaultValueLabel( toolkit, composite, "10636" ); //$NON-NLS-1$
     }
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("LdapLdapsServersPage.Limits") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "LdapLdapsServersPage.Limits" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
         section.setClient( composite );
 
         // Max. Time Limit Text
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.MaxTimeLimit") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.MaxTimeLimit" ) ); //$NON-NLS-1$
         maxTimeLimitText = createIntegerText( toolkit, composite );
         maxTimeLimitText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
 
         // Max. Size Limit Text
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.MaxSizeLimit") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.MaxSizeLimit" ) ); //$NON-NLS-1$
         maxSizeLimitText = createIntegerText( toolkit, composite );
         maxSizeLimitText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
     }
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR | Section.TWISTIE | Section.COMPACT );
-        section.setText( Messages.getString("LdapLdapsServersPage.Advanced") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "LdapLdapsServersPage.Advanced" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
         section.setClient( composite );
 
         // Enable TLS Checkbox
-        enableTlsCheckbox = toolkit.createButton( composite, Messages.getString("LdapLdapsServersPage.EnableTls"), SWT.CHECK ); //$NON-NLS-1$
+        enableTlsCheckbox = toolkit.createButton( composite,
+            Messages.getString( "LdapLdapsServersPage.EnableTls" ), SWT.CHECK ); //$NON-NLS-1$
         enableTlsCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 3, 1 ) );
 
         // Enable Server-side Password Hashing Checkbox
         enableServerSidePasswordHashingCheckbox = toolkit.createButton( composite,
-            Messages.getString("LdapLdapsServersPage.EnableServerSidePasswordHashing"), //$NON-NLS-1$
+            Messages.getString( "LdapLdapsServersPage.EnableServerSidePasswordHashing" ), //$NON-NLS-1$
             SWT.CHECK );
         enableServerSidePasswordHashingCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 3, 1 ) );
 
         // Server-side Password Hashing Combo
         toolkit.createLabel( composite, "   " ); //$NON-NLS-1$
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.HashingMethod") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.HashingMethod" ) ); //$NON-NLS-1$
         Combo hashingMethodCombo = new Combo( composite, SWT.READ_ONLY | SWT.SINGLE );
         hashingMethodCombo.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         toolkit.adapt( hashingMethodCombo );
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("LdapLdapsServersPage.SupportedAuthenticationMechanisms") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "LdapLdapsServersPage.SupportedAuthenticationMechanisms" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         composite.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite authMechNtlmComposite = toolkit.createComposite( composite );
         authMechNtlmComposite.setLayout( new GridLayout( 3, false ) );
         toolkit.createLabel( authMechNtlmComposite, "   " ); //$NON-NLS-1$
-        toolkit.createLabel( authMechNtlmComposite, Messages.getString("LdapLdapsServersPage.Provider") ); //$NON-NLS-1$
+        toolkit.createLabel( authMechNtlmComposite, Messages.getString( "LdapLdapsServersPage.Provider" ) ); //$NON-NLS-1$
         authMechNtlmText = toolkit.createText( authMechNtlmComposite, "" ); //$NON-NLS-1$
         authMechNtlmText.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );
         authMechNtlmComposite.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, false, false, 2, 1 ) );
         Composite authMechGssSpnegoComposite = toolkit.createComposite( composite );
         authMechGssSpnegoComposite.setLayout( new GridLayout( 3, false ) );
         toolkit.createLabel( authMechGssSpnegoComposite, "   " ); //$NON-NLS-1$
-        toolkit.createLabel( authMechGssSpnegoComposite, Messages.getString("LdapLdapsServersPage.Provider") ); //$NON-NLS-1$
+        toolkit.createLabel( authMechGssSpnegoComposite, Messages.getString( "LdapLdapsServersPage.Provider" ) ); //$NON-NLS-1$
         authMechGssSpnegoText = toolkit.createText( authMechGssSpnegoComposite, "" ); //$NON-NLS-1$
         authMechGssSpnegoText.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );
         authMechGssSpnegoComposite.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false, 2, 1 ) );
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("LdapLdapsServersPage.SslStartTlsKeystore") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "LdapLdapsServersPage.SslStartTlsKeystore" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
         section.setClient( composite );
 
         // Keystore File Text
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.Keystore") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.Keystore" ) ); //$NON-NLS-1$
         keystoreFileText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( keystoreFileText, new GridData( SWT.FILL, SWT.CENTER, true, false ) );
-        keystoreFileBrowseButton = toolkit.createButton( composite, Messages.getString("LdapLdapsServersPage.Browse"), SWT.PUSH ); //$NON-NLS-1$
+        keystoreFileBrowseButton = toolkit.createButton( composite,
+            Messages.getString( "LdapLdapsServersPage.Browse" ), SWT.PUSH ); //$NON-NLS-1$
 
         // Password Text
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.Password") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.Password" ) ); //$NON-NLS-1$
         keystorePasswordText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         keystorePasswordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
         keystorePasswordText.setEchoChar( '\u2022' );
 
         // Show Password Checkbox
         toolkit.createLabel( composite, "" ); //$NON-NLS-1$
-        showPasswordCheckbox = toolkit.createButton( composite, Messages.getString("LdapLdapsServersPage.ShowPassword"), SWT.CHECK ); //$NON-NLS-1$
+        showPasswordCheckbox = toolkit.createButton( composite,
+            Messages.getString( "LdapLdapsServersPage.ShowPassword" ), SWT.CHECK ); //$NON-NLS-1$
         showPasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );
         showPasswordCheckbox.setSelection( false );
     }
     {
         // Creation of the section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("LdapLdapsServersPage.SaslSettings") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "LdapLdapsServersPage.SaslSettings" ) ); //$NON-NLS-1$
         section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Composite composite = toolkit.createComposite( section );
         toolkit.paintBordersFor( composite );
         section.setClient( composite );
 
         // SASL Host Text
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.SaslHost") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.SaslHost" ) ); //$NON-NLS-1$
         saslHostText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( saslHostText, new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Label defaultSaslHostLabel = createDefaultValueLabel( toolkit, composite, "ldap.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("LdapLdapsServersPage.SaslPrincipal") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.SaslPrincipal" ) ); //$NON-NLS-1$
         saslPrincipalText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( saslPrincipalText, new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Label defaultSaslPrincipalLabel = createDefaultValueLabel( toolkit, composite,
         defaultSaslPrincipalLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
 
         // Search Base Dn Text
-        toolkit.createLabel( composite, Messages.getString("LdapLdapsServersPage.SearchBaseDn") ); //$NON-NLS-1$
+        toolkit.createLabel( composite, Messages.getString( "LdapLdapsServersPage.SearchBaseDn" ) ); //$NON-NLS-1$
         saslSearchBaseDnText = toolkit.createText( composite, "" ); //$NON-NLS-1$
         setGridDataWithDefaultWidth( saslSearchBaseDnText, new GridData( SWT.FILL, SWT.NONE, true, false ) );
         Label defaultSaslSearchBaseDnLabel = createDefaultValueLabel( toolkit, composite, "ou=users,dc=example,dc=com" ); //$NON-NLS-1$

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/LoadingPage.java

     public static final String ID = LoadingPage.class.getName(); //$NON-NLS-1$
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("LoadingPage.LoadingConfiguration"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "LoadingPage.LoadingConfiguration" ); //$NON-NLS-1$
 
 
     /**
     protected void createFormContent( IManagedForm managedForm )
     {
         ScrolledForm form = managedForm.getForm();
-        form.setText( Messages.getString("LoadingPage.LoadingConfigurationEllipsis") ); //$NON-NLS-1$
+        form.setText( Messages.getString( "LoadingPage.LoadingConfigurationEllipsis" ) ); //$NON-NLS-1$
 
         Composite parent = form.getBody();
         parent.setLayout( new GridLayout() );
         ProgressBar progressBar = new ProgressBar( composite, SWT.INDETERMINATE );
         progressBar.setLayoutData( new GridData( SWT.CENTER, SWT.NONE, false, false ) );
 
-        Label label = toolkit.createLabel( composite, Messages.getString("LoadingPage.LoadingTheConfigurationPleaseWait") ); //$NON-NLS-1$
+        Label label = toolkit.createLabel( composite,
+            Messages.getString( "LoadingPage.LoadingTheConfigurationPleaseWait" ) ); //$NON-NLS-1$
         label.setLayoutData( new GridData( SWT.CENTER, SWT.NONE, false, false ) );
     }
 }

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/NewServerConfigurationInput.java

      */
     public String getToolTipText()
     {
-        return Messages.getString("NewServerConfigurationInput.NewApacheDS20ConfigurationFile"); //$NON-NLS-1$
+        return Messages.getString( "NewServerConfigurationInput.NewApacheDS20ConfigurationFile" ); //$NON-NLS-1$
     }
 
 
      */
     public String getName()
     {
-        return Messages.getString("NewServerConfigurationInput.NewApacheDS20ConfigurationFile"); //$NON-NLS-1$
+        return Messages.getString( "NewServerConfigurationInput.NewApacheDS20ConfigurationFile" ); //$NON-NLS-1$
     }
 
 

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionDetailsPage.java

     {
         Section section = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
         section.marginWidth = 10;
-        section.setText( Messages.getString("PartitionDetailsPage.PartitionsDetails") ); //$NON-NLS-1$
-        section.setDescription( Messages.getString("PartitionDetailsPage.SetPropertiesOfPartition") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "PartitionDetailsPage.PartitionsDetails" ) ); //$NON-NLS-1$
+        section.setDescription( Messages.getString( "PartitionDetailsPage.SetPropertiesOfPartition" ) ); //$NON-NLS-1$
         TableWrapData td = new TableWrapData( TableWrapData.FILL, TableWrapData.TOP );
         td.grabHorizontal = true;
         section.setLayoutData( td );
         section.setClient( client );
 
         // ID
-        toolkit.createLabel( client, Messages.getString("PartitionDetailsPage.Id") ); //$NON-NLS-1$
+        toolkit.createLabel( client, Messages.getString( "PartitionDetailsPage.Id" ) ); //$NON-NLS-1$
         idText = toolkit.createText( client, "" ); //$NON-NLS-1$
         idText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
 
         // Cache Size
-        toolkit.createLabel( client, Messages.getString("PartitionDetailsPage.CacheSize") ); //$NON-NLS-1$
+        toolkit.createLabel( client, Messages.getString( "PartitionDetailsPage.CacheSize" ) ); //$NON-NLS-1$
         cacheSizeText = toolkit.createText( client, "" ); //$NON-NLS-1$
         cacheSizeText.addVerifyListener( new VerifyListener()
         {
         suffixText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );
 
         // Enable Optimizer
-        enableOptimizerCheckbox = toolkit.createButton( client, Messages.getString("PartitionDetailsPage.EnableOptimzer"), SWT.CHECK ); //$NON-NLS-1$
+        enableOptimizerCheckbox = toolkit.createButton( client,
+            Messages.getString( "PartitionDetailsPage.EnableOptimzer" ), SWT.CHECK ); //$NON-NLS-1$
         enableOptimizerCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 3, 1 ) );
 
         // Synchronisation On Write
-        synchOnWriteCheckbox = toolkit.createButton( client, Messages.getString("PartitionDetailsPage.SynchronizationOnWrite"), SWT.CHECK ); //$NON-NLS-1$
+        synchOnWriteCheckbox = toolkit.createButton( client,
+            Messages.getString( "PartitionDetailsPage.SynchronizationOnWrite" ), SWT.CHECK ); //$NON-NLS-1$
         synchOnWriteCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 3, 1 ) );
     }
 
         section.setClient( client );
 
         // Auto Generate Context Entry Checkbox
-        autoGenerateContextEntryCheckbox = toolkit.createButton( client, Messages.getString("PartitionDetailsPage.AutoGenerateContextEntryFromSuffixDn"), //$NON-NLS-1$
+        autoGenerateContextEntryCheckbox = toolkit.createButton( client,
+            Messages.getString( "PartitionDetailsPage.AutoGenerateContextEntryFromSuffixDn" ), //$NON-NLS-1$
             SWT.CHECK );
         autoGenerateContextEntryCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 3, 1 ) );
 
         gd.widthHint = 50;
         contextEntryTable.setLayoutData( gd );
         TableColumn idColumn = new TableColumn( contextEntryTable, SWT.LEFT, 0 );
-        idColumn.setText( Messages.getString("PartitionDetailsPage.Attribute") ); //$NON-NLS-1$
+        idColumn.setText( Messages.getString( "PartitionDetailsPage.Attribute" ) ); //$NON-NLS-1$
         idColumn.setWidth( 100 );
         TableColumn valueColumn = new TableColumn( contextEntryTable, SWT.LEFT, 1 );
-        valueColumn.setText( Messages.getString("PartitionDetailsPage.Value") ); //$NON-NLS-1$
+        valueColumn.setText( Messages.getString( "PartitionDetailsPage.Value" ) ); //$NON-NLS-1$
         valueColumn.setWidth( 100 );
         contextEntryTable.setHeaderVisible( true );
         contextEntryTableViewer = new TableViewer( contextEntryTable );
         buttonsGD.widthHint = IDialogConstants.BUTTON_WIDTH;
 
         // Context Entry Add Button
-        contextEntryAddButton = toolkit.createButton( client, Messages.getString("PartitionDetailsPage.Add"), SWT.PUSH ); //$NON-NLS-1$
+        contextEntryAddButton = toolkit.createButton( client,
+            Messages.getString( "PartitionDetailsPage.Add" ), SWT.PUSH ); //$NON-NLS-1$
         contextEntryAddButton.setLayoutData( buttonsGD );
 
         // Context Entry Edit Button
-        contextEntryEditButton = toolkit.createButton( client, Messages.getString("PartitionDetailsPage.Edit"), SWT.PUSH ); //$NON-NLS-1$
+        contextEntryEditButton = toolkit.createButton( client,
+            Messages.getString( "PartitionDetailsPage.Edit" ), SWT.PUSH ); //$NON-NLS-1$
         contextEntryEditButton.setEnabled( false );
         contextEntryEditButton.setLayoutData( buttonsGD );
 
         // Context Entry Delete Button
-        contextEntryDeleteButton = toolkit.createButton( client, Messages.getString("PartitionDetailsPage.Delete"), SWT.PUSH ); //$NON-NLS-1$
+        contextEntryDeleteButton = toolkit.createButton( client,
+            Messages.getString( "PartitionDetailsPage.Delete" ), SWT.PUSH ); //$NON-NLS-1$
         contextEntryDeleteButton.setEnabled( false );
         contextEntryDeleteButton.setLayoutData( buttonsGD );
     }
         // Section
         Section indexedAttributesSection = toolkit.createSection( parent, Section.DESCRIPTION | Section.TITLE_BAR );
         indexedAttributesSection.marginWidth = 10;
-        indexedAttributesSection.setText( Messages.getString("PartitionDetailsPage.IndexedAttributes") ); //$NON-NLS-1$
-        indexedAttributesSection.setDescription( Messages.getString("PartitionDetailsPage.SetIndexedAttributesOfPartition") ); //$NON-NLS-1$
+        indexedAttributesSection.setText( Messages.getString( "PartitionDetailsPage.IndexedAttributes" ) ); //$NON-NLS-1$
+        indexedAttributesSection.setDescription( Messages
+            .getString( "PartitionDetailsPage.SetIndexedAttributesOfPartition" ) ); //$NON-NLS-1$
         indexedAttributesSection.setLayoutData( new TableWrapData( TableWrapData.FILL ) );
         Composite indexedAttributesClient = toolkit.createComposite( indexedAttributesSection );
         toolkit.paintBordersFor( indexedAttributesClient );
                 {
                     JdbmIndexBean<String, Entry> jdbmIndexBean = ( JdbmIndexBean<String, Entry> ) element;
 
-                    return NLS.bind( Messages.getString("PartitionDetailsPage.IndexAttributeIdAndCacheSize"), jdbmIndexBean.getIndexAttributeId(), //$NON-NLS-1$
+                    return NLS.bind(
+                        Messages.getString( "PartitionDetailsPage.IndexAttributeIdAndCacheSize" ), jdbmIndexBean.getIndexAttributeId(), //$NON-NLS-1$
                         jdbmIndexBean.getIndexCacheSize() );
                 }
 
         } );
 
         // Add button
-        indexesAddButton = toolkit.createButton( indexedAttributesClient, Messages.getString("PartitionDetailsPage.Add"), SWT.PUSH ); //$NON-NLS-1$
+        indexesAddButton = toolkit.createButton( indexedAttributesClient,
+            Messages.getString( "PartitionDetailsPage.Add" ), SWT.PUSH ); //$NON-NLS-1$
         indexesAddButton.setLayoutData( createNewButtonGridData() );
 
         // Edit button
-        indexesEditButton = toolkit.createButton( indexedAttributesClient, Messages.getString("PartitionDetailsPage.Edit"), SWT.PUSH ); //$NON-NLS-1$
+        indexesEditButton = toolkit.createButton( indexedAttributesClient,
+            Messages.getString( "PartitionDetailsPage.Edit" ), SWT.PUSH ); //$NON-NLS-1$
         indexesEditButton.setEnabled( false );
         indexesEditButton.setLayoutData( createNewButtonGridData() );
 
         // Delete button
-        indexesDeleteButton = toolkit.createButton( indexedAttributesClient, Messages.getString("PartitionDetailsPage.Delete"), SWT.PUSH ); //$NON-NLS-1$
+        indexesDeleteButton = toolkit.createButton( indexedAttributesClient,
+            Messages.getString( "PartitionDetailsPage.Delete" ), SWT.PUSH ); //$NON-NLS-1$
         indexesDeleteButton.setEnabled( false );
         indexesDeleteButton.setLayoutData( createNewButtonGridData() );
     }
         {
             JdbmIndexBean<String, Entry> selectedIndex = ( JdbmIndexBean<String, Entry> ) selection.getFirstElement();
 
-            if ( MessageDialog.openConfirm( mform.getForm().getShell(), Messages.getString("PartitionDetailsPage.ConfirmDelete"), //$NON-NLS-1$
-                NLS.bind( Messages.getString("PartitionDetailsPage.AreYouSureDeleteIndex"), selectedIndex.getIndexAttributeId() ) ) ) //$NON-NLS-1$
+            if ( MessageDialog
+                .openConfirm( mform.getForm().getShell(),
+                    Messages.getString( "PartitionDetailsPage.ConfirmDelete" ), //$NON-NLS-1$
+                    NLS.bind(
+                        Messages.getString( "PartitionDetailsPage.AreYouSureDeleteIndex" ), selectedIndex.getIndexAttributeId() ) ) ) //$NON-NLS-1$
             {
                 indexesList.remove( selectedIndex );
                 indexesTableViewer.refresh();

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionsMasterDetailsBlock.java

  */
 public class PartitionsMasterDetailsBlock extends MasterDetailsBlock
 {
-    private static final String NEW_ID = Messages.getString("PartitionsMasterDetailsBlock.PartitionNewId"); //$NON-NLS-1$
+    private static final String NEW_ID = Messages.getString( "PartitionsMasterDetailsBlock.PartitionNewId" ); //$NON-NLS-1$
 
     /** The associated page */
     private PartitionsPage page;
 
         // Creating the Section
         Section section = toolkit.createSection( parent, Section.TITLE_BAR );
-        section.setText( Messages.getString("PartitionsMasterDetailsBlock.AllPartitions") ); //$NON-NLS-1$
+        section.setText( Messages.getString( "PartitionsMasterDetailsBlock.AllPartitions" ) ); //$NON-NLS-1$
         section.marginWidth = 10;
         section.marginHeight = 5;
         Composite client = toolkit.createComposite( section, SWT.WRAP );
         viewer.setComparator( PartitionsPage.PARTITIONS_COMPARATOR );
 
         // Creating the button(s)
-        addButton = toolkit.createButton( client, Messages.getString("PartitionsMasterDetailsBlock.Add"), SWT.PUSH ); //$NON-NLS-1$
+        addButton = toolkit.createButton( client, Messages.getString( "PartitionsMasterDetailsBlock.Add" ), SWT.PUSH ); //$NON-NLS-1$
         addButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING, false, false ) );
 
-        deleteButton = toolkit.createButton( client, Messages.getString("PartitionsMasterDetailsBlock.Delete"), SWT.PUSH ); //$NON-NLS-1$
+        deleteButton = toolkit.createButton( client,
+            Messages.getString( "PartitionsMasterDetailsBlock.Delete" ), SWT.PUSH ); //$NON-NLS-1$
         deleteButton.setEnabled( false );
         deleteButton.setLayoutData( new GridData( SWT.FILL, SWT.BEGINNING, false, false ) );
 
             JdbmPartitionBean partition = ( JdbmPartitionBean ) selection.getFirstElement();
             if ( !PartitionsPage.isSystemPartition( partition ) )
             {
-                if ( MessageDialog.openConfirm(
-                    page.getManagedForm().getForm().getShell(),
-                    Messages.getString("PartitionsMasterDetailsBlock.ConfirmDelete"), //$NON-NLS-1$
-                    NLS.bind( Messages.getString("PartitionsMasterDetailsBlock.AreYouSureDeletePartition"), partition.getPartitionId(), //$NON-NLS-1$
-                        partition.getPartitionSuffix() ) ) )
+                if ( MessageDialog
+                    .openConfirm(
+                        page.getManagedForm().getForm().getShell(),
+                        Messages.getString( "PartitionsMasterDetailsBlock.ConfirmDelete" ), //$NON-NLS-1$
+                        NLS.bind(
+                            Messages.getString( "PartitionsMasterDetailsBlock.AreYouSureDeletePartition" ), partition.getPartitionId(), //$NON-NLS-1$
+                            partition.getPartitionSuffix() ) ) )
                 {
                     page.getConfigBean().getDirectoryServiceBean().getPartitions().remove( partition );
                     setEditorDirty();

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PartitionsPage.java

     public static final String ID = PartitionsPage.class.getName(); //$NON-NLS-1$
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("PartitionsPage.Partitions"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "PartitionsPage.Partitions" ); //$NON-NLS-1$
 
     /** The label provider for partition table viewers */
     public static LabelProvider PARTITIONS_LABEL_PROVIDER = new LabelProvider()

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/PasswordPolicyPage.java

     public static final String ID = PasswordPolicyPage.class.getName(); //$NON-NLS-1$
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("PasswordPolicyPage.PasswordPolicy"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "PasswordPolicyPage.PasswordPolicy" ); //$NON-NLS-1$
 
 
     /**
     protected void createFormContent( IManagedForm managedForm )
     {
         ScrolledForm form = managedForm.getForm();
-        form.setText( Messages.getString("PasswordPolicyPage.PasswordPolicy") ); //$NON-NLS-1$
+        form.setText( Messages.getString( "PasswordPolicyPage.PasswordPolicy" ) ); //$NON-NLS-1$
 
         Composite parent = form.getBody();
         parent.setLayout( new GridLayout() );

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ReplicationPage.java

     public static final String ID = ReplicationPage.class.getName();
 
     /** The Page Title */
-    private static final String TITLE = Messages.getString("ReplicationPage.Replication"); //$NON-NLS-1$
+    private static final String TITLE = Messages.getString( "ReplicationPage.Replication" ); //$NON-NLS-1$
 
 
     /**

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditor.java

                 {
                     try
                     {
-                        monitor.beginTask( Messages.getString("ServerConfigurationEditor.SavingServerConfiguration"), IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
+                        monitor.beginTask(
+                            Messages.getString( "ServerConfigurationEditor.SavingServerConfiguration" ), IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
                         doSaveAs( monitor );
                         monitor.done();
                     }

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorPage.java

      */
     protected Label createDefaultValueLabel( FormToolkit toolkit, Composite parent, String text )
     {
-        Label label = toolkit.createLabel( parent, NLS.bind( Messages.getString("ServerConfigurationEditorPage.DefaultWithValue"), text ), SWT.WRAP ); //$NON-NLS-1$
+        Label label = toolkit.createLabel( parent,
+            NLS.bind( Messages.getString( "ServerConfigurationEditorPage.DefaultWithValue" ), text ), SWT.WRAP ); //$NON-NLS-1$
         label.setForeground( GRAY_COLOR );
 
         return label;

plugins/apacheds.configuration.v2/src/main/java/org/apache/directory/studio/apacheds/configuration/v2/editor/ServerConfigurationEditorUtils.java

                 if ( externalFile.exists() )
                 {
                     String question = NLS.bind(
-                        Messages.getString("ServerConfigurationEditorUtils.TheFileAlreadyExistsWantToReplace"), path ); //$NON-NLS-1$
-                    MessageDialog overwriteDialog = new MessageDialog( shell, Messages.getString("ServerConfigurationEditorUtils.Question"), null, question, //$NON-NLS-1$
+                        Messages.getString( "ServerConfigurationEditorUtils.TheFileAlreadyExistsWantToReplace" ), path ); //$NON-NLS-1$
+                    MessageDialog overwriteDialog = new MessageDialog( shell,
+                        Messages.getString( "ServerConfigurationEditorUtils.Question" ), null, question, //$NON-NLS-1$
                         MessageDialog.QUESTION, new String[]
                             { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 0 );
                     int overwrite = openDialogInUIThread( overwriteDialog );
             // Checking if there were errors during the execution of the LDIF
             if ( studioProgressMonitor.errorsReported() )
             {
-                throw new Exception( Messages.getString("ServerConfigurationEditorUtils.ChangesCouldNotBeSavedToConnection") ); //$NON-NLS-1$
+                throw new Exception(
+                    Messages.getString( "ServerConfigurationEditorUtils.ChangesCouldNotBeSavedToConnection" ) ); //$NON-NLS-1$
             }
             else
             {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.