void restoreState ( Configuration configuration ) { this . configFile = configuration . configFile ; this . language = configuration . language ; this . motherTongue = configuration . motherTongue ; this . ngramDirectory = configuration . ngramDirectory ; this . word2vecDirectory = configuration . word2vecDirectory ; this . runServer = configuration . runServer ; this . autoDetect = configuration . autoDetect ; this . taggerShowsDisambigLog = configuration . taggerShowsDisambigLog ; this . guiConfig = configuration . guiConfig ; this . fontName = configuration . fontName ; this . fontStyle = configuration . fontStyle ; this . fontSize = configuration . fontSize ; this . serverPort = configuration . serverPort ; this . numParasToCheck = configuration . numParasToCheck ; this . doResetCheck = configuration . doResetCheck ; this . noMultiReset = configuration . noMultiReset ; this . useDocLanguage = configuration . useDocLanguage ; this . lookAndFeelName = configuration . lookAndFeelName ; this . externalRuleDirectory = configuration . externalRuleDirectory ; this . disabledRuleIds . clear ( ) ; this . disabledRuleIds . addAll ( configuration . disabledRuleIds ) ; this . enabledRuleIds . clear ( ) ; this . enabledRuleIds . addAll ( configuration . enabledRuleIds ) ; this . disabledCategoryNames . clear ( ) ; this . disabledCategoryNames . addAll ( configuration . disabledCategoryNames ) ; this . enabledCategoryNames . clear ( ) ; this . enabledCategoryNames . addAll ( configuration . enabledCategoryNames ) ; this . configForOtherLanguages . clear ( ) ; for ( String key : configuration . configForOtherLanguages . keySet ( ) ) { this . configForOtherLanguages . put ( key , configuration . configForOtherLanguages . get ( key ) ) ; } this . underlineColors . clear ( ) ; for ( Map . Entry < String , Color > entry : configuration . underlineColors . entrySet ( ) ) { this . underlineColors . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } this . configurableRuleValues . clear ( ) ; for ( Map . Entry < String , Integer > entry : configuration . configurableRuleValues . entrySet ( ) ) { this . configurableRuleValues . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } this . styleLikeCategories . clear ( ) ; this . styleLikeCategories . addAll ( configuration . styleLikeCategories ) ; this . specialTabCategories . clear ( ) ; for ( Map . Entry < String , String > entry : configuration . specialTabCategories . entrySet ( ) ) { this . specialTabCategories . put ( entry . getKey ( ) , entry . getValue ( ) ) ; } }
Restore the state of this object from configuration .