Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 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());
 }
Exemplo n.º 4
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();
 }