directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r803075 - /directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/ServerConfigurationEditor.java
Date Tue, 11 Aug 2009 11:46:55 GMT
Author: pamarcelot
Date: Tue Aug 11 11:46:54 2009
New Revision: 803075

URL: http://svn.apache.org/viewvc?rev=803075&view=rev
Log:
Applied code formatting.

Modified:
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/ServerConfigurationEditor.java

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/ServerConfigurationEditor.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/ServerConfigurationEditor.java?rev=803075&r1=803074&r2=803075&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/ServerConfigurationEditor.java
(original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/editor/ServerConfigurationEditor.java
Tue Aug 11 11:46:54 2009
@@ -346,7 +346,8 @@
      */
     public void doSave( IProgressMonitor monitor )
     {
-        monitor.beginTask( Messages.getString("ServerConfigurationEditor.SavingTheServerConfiguration"),
IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
+        monitor.beginTask(
+            Messages.getString( "ServerConfigurationEditor.SavingTheServerConfiguration"
), IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
 
         // Saving the editor pages
         saveEditorPages();
@@ -397,8 +398,9 @@
         {
             MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                 SWT.OK | SWT.ICON_ERROR );
-            messageBox.setText( Messages.getString("ServerConfigurationEditor.Error") );
//$NON-NLS-1$
-            messageBox.setMessage( Messages.getString("ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk")
+ "\n" + e.getMessage() ); //$NON-NLS-1$ //$NON-NLS-2$
+            messageBox.setText( Messages.getString( "ServerConfigurationEditor.Error" ) );
//$NON-NLS-1$
+            messageBox
+                .setMessage( Messages.getString( "ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk"
) + "\n" + e.getMessage() ); //$NON-NLS-1$ //$NON-NLS-2$
             messageBox.open();
             setDirty( true );
             monitor.done();
@@ -503,7 +505,9 @@
                 {
                     try
                     {
-                        monitor.beginTask( Messages.getString("ServerConfigurationEditor.SavingTheServerConfiguration"),
IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
+                        monitor
+                            .beginTask(
+                                Messages.getString( "ServerConfigurationEditor.SavingTheServerConfiguration"
), IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
                         saveEditorPages();
                         boolean success = doSaveAs( monitor );
                         setDirty( !success );
@@ -513,8 +517,9 @@
                     {
                         MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                             .getShell(), SWT.OK | SWT.ICON_ERROR );
-                        messageBox.setText( Messages.getString("ServerConfigurationEditor.Error")
); //$NON-NLS-1$
-                        messageBox.setMessage( Messages.getString("ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk")
+ "\n" //$NON-NLS-1$ //$NON-NLS-2$
+                        messageBox.setText( Messages.getString( "ServerConfigurationEditor.Error"
) ); //$NON-NLS-1$
+                        messageBox.setMessage( Messages
+                            .getString( "ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk"
) + "\n" //$NON-NLS-1$ //$NON-NLS-2$
                             + e.getMessage() );
                         messageBox.open();
                         setDirty( true );
@@ -528,8 +533,9 @@
         {
             MessageBox messageBox = new MessageBox( PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
                 SWT.OK | SWT.ICON_ERROR );
-            messageBox.setText( Messages.getString("ServerConfigurationEditor.Error") );
//$NON-NLS-1$
-            messageBox.setMessage( Messages.getString("ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk")
+ "\n" + e.getMessage() ); //$NON-NLS-1$ //$NON-NLS-2$
+            messageBox.setText( Messages.getString( "ServerConfigurationEditor.Error" ) );
//$NON-NLS-1$
+            messageBox
+                .setMessage( Messages.getString( "ServerConfigurationEditor.AnErrorOccurredWhenWritingTheFileToDisk"
) + "\n" + e.getMessage() ); //$NON-NLS-1$ //$NON-NLS-2$
             messageBox.open();
             return;
         }
@@ -602,8 +608,10 @@
                 final File externalFile = new File( path );
                 if ( externalFile.exists() )
                 {
-                    String question = NLS.bind( Messages.getString("ServerConfigurationEditor.TheFileAlreadyExistsReplace"
), path ); //$NON-NLS-1$
-                    MessageDialog overwriteDialog = new MessageDialog( shell, Messages.getString("ServerConfigurationEditor.Question"),
null, question, //$NON-NLS-1$
+                    String question = NLS.bind( Messages
+                        .getString( "ServerConfigurationEditor.TheFileAlreadyExistsReplace"
), path ); //$NON-NLS-1$
+                    MessageDialog overwriteDialog = new MessageDialog( shell, Messages
+                        .getString( "ServerConfigurationEditor.Question" ), null, question,
//$NON-NLS-1$
                         MessageDialog.QUESTION, new String[]
                             { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL
}, 0 );
                     int overwrite = overwriteDialog.open();



Mime
View raw message