|
|
|
@ -205,6 +205,7 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
jdbcDatabase = new JDBCDatabaseConnection(); |
|
|
|
|
} |
|
|
|
|
this.jdbcDatabase = jdbcDatabase; |
|
|
|
|
this.dbtypeComboBox.removeActionListener(dbtypeActionListener); |
|
|
|
|
if (ComparatorUtils.equals(jdbcDatabase.getDriver(), "sun.jdbc.odbc.JdbcOdbcDriver") |
|
|
|
|
&& jdbcDatabase.getURL().startsWith("jdbc:odbc:Driver={Microsoft")) { |
|
|
|
|
this.dbtypeComboBox.setSelectedItem("Access"); |
|
|
|
@ -229,6 +230,7 @@ public class JDBCDefPane extends JPanel {
|
|
|
|
|
this.dbtypeComboBox.setSelectedItem(OTHER_DB); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.dbtypeComboBox.addActionListener(dbtypeActionListener); |
|
|
|
|
this.driverComboBox.setSelectedItem(jdbcDatabase.getDriver()); |
|
|
|
|
this.urlTextField.setText(jdbcDatabase.getURL()); |
|
|
|
|
this.userNameTextField.setText(jdbcDatabase.getUser()); |
|
|
|
|