use of com.intellij.tasks.youtrack.YouTrackIntellisense.HighlightRange in project intellij-community by JetBrains.
the class YouTrackHighlightingAnnotator method apply.
@Override
public void apply(@NotNull PsiFile file, List<HighlightRange> ranges, @NotNull AnnotationHolder holder) {
for (HighlightRange range : ranges) {
if (range.getStyleClass().equals("error")) {
holder.createErrorAnnotation(range.getTextRange(), null);
} else {
final Annotation infoAnnotation = holder.createInfoAnnotation(range.getTextRange(), null);
infoAnnotation.setEnforcedTextAttributes(range.getTextAttributes());
}
}
}
Aggregations