ConfigThread(final Language docLanguage, final Configuration config,
final org.languagetool.openoffice.Main main) {
this.docLanguage = docLanguage;
this.config = config;
mainThread = main;
cfgDialog = new ConfigurationDialog(null, true);
cfgDialog.setDisabledRules(config.getDisabledRuleIds());
cfgDialog.setEnabledRules(config.getEnabledRuleIds());
cfgDialog.setDisabledCategories(config.getDisabledCategoryNames());
cfgDialog.setMotherTongue(config.getMotherTongue());
}