make lineSeparator 1.6 compatibel again
authorAndreas Müller <a.mueller@bgbm.org>
Wed, 7 May 2014 15:07:28 +0000 (15:07 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Wed, 7 May 2014 15:07:28 +0000 (15:07 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/datasource/wizard/CdmDataSourceCredentialsWizardPage.java

index 65c9725e298dbeac06a3ff8481a8371066013e22..7fce2d5dd6ecbb3baae8654ceffeaeb0cb9e0a27 100644 (file)
@@ -289,14 +289,14 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                        }
                } catch(SQLException e){
                        MessageDialog.openWarning(parent.getShell(), "Connection Test unsuccessful", "Reason: " + e.getMessage() 
-                                       + System.lineSeparator() 
-                                       + System.lineSeparator() 
+                                       + System.getProperty("line.separator")    //we may use System.lineSeparator when migrated to Java 1.7
+                                       + System.getProperty("line.separator")
                                        + "Please double check the connection fields");
                        throw new RuntimeException(e);
                } catch (ClassNotFoundException e) {
                        MessageDialog.openWarning(parent.getShell(), "Connection Test unsuccessful", "Reason: " + e.getMessage()                                        
-                                       + System.lineSeparator() 
-                                       + System.lineSeparator() 
+                                       + System.getProperty("line.separator")    //we may use System.lineSeparator when migrated to Java 1.7
+                                       + System.getProperty("line.separator")
                                        + "Please double check the connection fields");
                        throw new RuntimeException(e);
                }