コード例 #1
0
  public void deleteSelectedConfiguration(IConfigurationChooser chooser) {
    chooser.dispose();

    ProxyPresenter presenter = view.getProxyPresenter();
    String configurationName = chooser.getChosenConfigurationName();

    setTitle(null);
    if (configurationName == null) {

      Logger.getLogger(this.getClass()).info("No configuration selected.");

    } else {

      presenter.deleteConfiguration(configurationName);

      Logger.getLogger(this.getClass()).info("Deleted configuration '" + configurationName + "'");
    }
  }
コード例 #2
0
  public void loadSelectedConfiguration(IConfigurationChooser chooser) {
    chooser.dispose();

    ProxyPresenter presenter = view.getProxyPresenter();
    String configurationName = chooser.getChosenConfigurationName();

    setTitle(configurationName);

    if (configurationName == null) {

      Logger.getLogger(this.getClass()).info("No configuration selected.");

    } else {
      presenter.loadProxySettings(configurationName);
      presenter.loadDecoratorSettings(configurationName);

      Logger.getLogger(this.getClass()).info("Loaded configuration '" + configurationName + "'");
    }
  }