Browse Source

Pull request #5411: REPORT-53615 调整下combox的展示顺序

Merge in DESIGN/design from ~XIQIU/design:feature/10.0 to feature/10.0

* commit '27b2c177b002bbe9d60b69f4abbaf4002ed8e7a2':
  REPORT-53615  调整下combox的展示顺序
feature/10.0
Xiqiu 3 years ago
parent
commit
8294e19672
  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