private void save(Map<String,ColorScheme> colorSchemes,String activeSchemeId){
  saveButton.setEnabled(false);
  revertButton.setEnabled(false);
  Map<String,ColorScheme> initialColorSchemes=new HashMap<String,ColorScheme>();
  Map<String,ColorScheme> currentColorSchemes=new HashMap<String,ColorScheme>();
  for (  ColorScheme scheme : colorSchemes.values()) {
    if (scheme != null) {
      initialColorSchemes.put(scheme.getName(),scheme.clone());
      currentColorSchemes.put(scheme.getName(),scheme.clone());
    }
  }
  this.currentActiveColorSchemeName=activeSchemeId;
  this.initialActiveColorSchemeName=activeSchemeId;
  this.initialColorSchemes=initialColorSchemes;
  this.currentColorSchemes=currentColorSchemes;
  adaptModels();
}

private void save ( Map < String , ColorScheme > colorSchemes , String activeSchemeId ) { saveButton . setEnabled ( false ) ; revertButton . setEnabled ( false ) ; Map < String , ColorScheme > initialColorSchemes = new HashMap < String , ColorScheme > ( ) ; Map < String , ColorScheme > currentColorSchemes = new HashMap < String , ColorScheme > ( ) ; for ( ColorScheme scheme : colorSchemes . values ( ) ) { if ( scheme != null ) { initialColorSchemes . put ( scheme . getName ( ) , scheme . clone ( ) ) ; currentColorSchemes . put ( scheme . getName ( ) , scheme . clone ( ) ) ; } } this . currentActiveColorSchemeName = activeSchemeId ; this . initialActiveColorSchemeName = activeSchemeId ; this . initialColorSchemes = initialColorSchemes ; this . currentColorSchemes = currentColorSchemes ; adaptModels ( ) ; }
clones parameter and sets them to current and initial color scheme fields
