Browse Source

REPORT-53615 调整下combox的展示顺序

feature/10.0
xiqiu 3 years ago
parent
commit
27b2c177b0
  1. 5
      designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

5
designer-base/src/main/java/com/fr/design/data/datapane/connect/JDBCDefPane.java

@ -515,8 +515,9 @@ public class JDBCDefPane extends JPanel {
refreshDriverManage(true); refreshDriverManage(true);
this.driverManageBox.setSelectedItem(Toolkit.i18nText("Fine-Design_Driver_Manage_Self_Define")); this.driverManageBox.setSelectedItem(Toolkit.i18nText("Fine-Design_Driver_Manage_Self_Define"));
String represent = getRepresent(jdbcDatabase.getDriver(), jdbcDatabase.getDriverSource()); String represent = getRepresent(jdbcDatabase.getDriver(), jdbcDatabase.getDriverSource());
this.driverLoaderBox.removeItem(represent); if (!nameAndRepresent.containsValue(represent)) {
this.driverLoaderBox.addItem(represent); this.driverLoaderBox.addItem(represent);
}
this.driverLoaderBox.setSelectedItem(represent); this.driverLoaderBox.setSelectedItem(represent);
} }
this.urlTextField.setText(jdbcDatabase.getURL()); this.urlTextField.setText(jdbcDatabase.getURL());

Loading…
Cancel
Save