}
} 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);
}