annotators: do not propagate all intentions available in editor to the batch mode as they can show dialogs, etc (IDEA-90380)

This commit is contained in:
Anna Kozlova
2012-08-23 18:06:16 +04:00
parent 339139353a
commit 4e1b641b66
7 changed files with 63 additions and 11 deletions
@@ -68,7 +68,7 @@ public class FixAllAnnotatorQuickfixTest extends LightQuickFixTestCase {
public void annotate(@NotNull PsiElement element, @NotNull AnnotationHolder holder) {
if (element instanceof PsiMethod) {
Annotation annotation = holder.createErrorAnnotation(((PsiMethod)element).getNameIdentifier(), null);
annotation.registerFix(new MyFix());
annotation.registerUniversalFix(new MyFix(), null, null);
annotation.setTextAttributes(CodeInsightColors.DOC_COMMENT_TAG_VALUE);
}
}