示例#1
0
 public void aboutToHidePanel() {
   Config config = ((Ili2dbWizard) getWizard()).getIli2dbConfig();
   GpkgDbPanel panel = (GpkgDbPanel) getPanelComponent();
   config.setDbdatabase(panel.getDbname());
   config.setDbhost(panel.getDbhost());
   config.setDbport(panel.getDbport());
   config.setDbusr(panel.getDbusr());
   config.setDbpwd(panel.getDbpwd());
   try {
     config.setDburl(panel.getDbUrlConverter().makeUrl(config));
     Ili2db.readSettingsFromDb(config);
   } catch (Ili2dbException e) {
     EhiLogger.logError(e);
   }
   super.aboutToHidePanel();
 }