@Override public void applyConfig(final ConfigSettings config){
  Object o=config.getConfigParameter(ConfigurationKeys.WIKIPEDIA_ENCODING);
  if (o != null) {
    encodingField.setText((String)o);
  }
 else {
    encodingField.setText("");
  }
  o=config.getConfigParameter(ConfigurationKeys.MODE_SURROGATES);
  if (o != null) {
    controller.setSurrogates((SurrogateModes)o);
  }
 else {
    controller.setSurrogates(SurrogateModes.DISCARD_REVISION);
  }
}

@ Override public void applyConfig ( final ConfigSettings config ) { Object o = config . getConfigParameter ( ConfigurationKeys . WIKIPEDIA_ENCODING ) ; if ( o != null ) { encodingField . setText ( ( String ) o ) ; } else { encodingField . setText ( "" ) ; } o = config . getConfigParameter ( ConfigurationKeys . MODE_SURROGATES ) ; if ( o != null ) { controller . setSurrogates ( ( SurrogateModes ) o ) ; } else { controller . setSurrogates ( SurrogateModes . DISCARD_REVISION ) ; } }
reads the configuration parameters described in the panel from the configsettings and and sets the contained values .
