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 aboutToDisplayPanel() { super.aboutToDisplayPanel(); Config config = ((Ili2dbWizard) getWizard()).getIli2dbConfig(); GenericDbPanel panel = (GenericDbPanel) getPanelComponent(); panel.setDburl(config.getDburl()); panel.setDbusr(config.getDbusr()); panel.setDbpwd(config.getDbpwd()); }
public void aboutToDisplayPanel() { super.aboutToDisplayPanel(); Config config = ((Ili2dbWizard) getWizard()).getIli2dbConfig(); GpkgDbPanel panel = (GpkgDbPanel) getPanelComponent(); panel.setDbname(config.getDbdatabase()); panel.setDbhost(config.getDbhost()); panel.setDbport(config.getDbport()); panel.setDbusr(config.getDbusr()); panel.setDbpwd(config.getDbpwd()); panel.setDbUrlConverter(((Ili2dbWizard) getWizard()).getDbUrlConverter()); panel.setJdbcDriver(config.getJdbcDriver()); }
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(); }