do not suppress file-level inspections

This commit is contained in:
Gregory.Shrago
2013-11-08 20:04:28 +04:00
parent 4745efc8d5
commit 795357c5a1
@@ -92,7 +92,7 @@ public class UpdateHighlightersUtil {
final int group,
@NotNull Map<TextRange, RangeMarker> ranges2markersCache) {
ApplicationManager.getApplication().assertIsDispatchThread();
if (info.isFileLevelAnnotation() || info.getGutterIconRenderer() != null) return;
if (isFileLevelOrGutterAnnotation(info)) return;
if (info.getStartOffset() < startOffset || info.getEndOffset() > endOffset) return;
MarkupModel markup = DocumentMarkupModel.forDocument(document, project, true);
@@ -119,6 +119,10 @@ public class UpdateHighlightersUtil {
}
}
public static boolean isFileLevelOrGutterAnnotation(HighlightInfo info) {
return info.isFileLevelAnnotation() || info.getGutterIconRenderer() != null;
}
public static void setHighlightersToEditor(@NotNull Project project,
@NotNull Document document,
int startOffset,