applyToDialects processed properly(cherry picked from commit 94e75a8)

This commit is contained in:
Dmitry Avdeev
2011-12-14 16:20:25 +04:00
parent b2b3e8b9cd
commit 2e8eda397e
@@ -275,8 +275,10 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass
LocalInspectionTool tool = wrapper.getTool();
if (!checkDumbAwareness || tool instanceof DumbAware) {
map.putValue(tool, language);
for (Language dialect : lang.getDialects()) {
map.putValue(tool, dialect.getID());
if (wrapper.applyToDialects()) {
for (Language dialect : lang.getDialects()) {
map.putValue(tool, dialect.getID());
}
}
}
}