public void aboutToHidePanel() { Config config = ((Ili2dbWizard) getWizard()).getIli2dbConfig(); GenericDbPanel panel = (GenericDbPanel) getPanelComponent(); config.setDburl(panel.getDburl()); config.setDbusr(panel.getDbusr()); config.setDbpwd(panel.getDbpwd()); super.aboutToHidePanel(); }
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(); }