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();
 }
Esempio n. 2
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();
 }
Esempio n. 3
0
  public Config initConfig(String xtfFilename, String dbschema, String logfile) {
    Config config = new Config();
    new ch.ehi.ili2pg.PgMain().initConfig(config);

    config.setDburl(dburl);
    config.setDbusr(dbuser);
    config.setDbpwd(dbpwd);
    if (dbschema != null) {
      config.setDbschema(dbschema);
    }
    if (logfile != null) {
      config.setLogfile(logfile);
    }

    config.setXtffile(xtfFilename);
    if (Ili2db.isItfFilename(xtfFilename)) {
      config.setItfTransferfile(true);
    }
    return config;
  }