Skip to content

Commit

Permalink
improve method name
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaber committed Jan 28, 2015
1 parent 49f3276 commit 210427a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -481,15 +481,15 @@ private JLanguageTool getLanguageToolInstance(Language lang, Language motherTong
}
final Configuration config = new Configuration(lang);
if (!params.useQuerySettings && internalServer && config.getUseGUIConfig()) { // use the GUI config values
configureGUI(newLanguageTool, config);
configureFromGUI(newLanguageTool, config);
}
if (params.useQuerySettings) {
Tools.selectRules(newLanguageTool, params.disabledRules, params.enabledRules, params.useEnabledOnly);
}
return newLanguageTool;
}

private void configureGUI(JLanguageTool langTool, Configuration config) {
private void configureFromGUI(JLanguageTool langTool, Configuration config) {
print("Using options configured in the GUI");
//TODO: add a parameter to config to set language
final Set<String> disabledRules = config.getDisabledRuleIds();
Expand Down

0 comments on commit 210427a

Please sign in to comment.