mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[java-intentions] Avoid showing error in preview
Fixes EA-746578 - T: LocalHintManager.getHintPosition GitOrigin-RevId: d27561f6855ce284993a3e517cb196262dff679e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
76167de819
commit
ef30944ea2
@@ -4,6 +4,7 @@ package com.intellij.codeInsight.intention.impl;
|
||||
import com.intellij.codeInsight.daemon.impl.actions.IntentionActionWithFixAllOption;
|
||||
import com.intellij.codeInsight.daemon.impl.analysis.JavaModuleGraphUtil;
|
||||
import com.intellij.codeInsight.hint.HintManager;
|
||||
import com.intellij.codeInsight.intention.preview.IntentionPreviewUtils;
|
||||
import com.intellij.codeInspection.LocalQuickFixAndIntentionActionOnPsiElement;
|
||||
import com.intellij.codeInspection.util.IntentionFamilyName;
|
||||
import com.intellij.codeInspection.util.IntentionName;
|
||||
@@ -85,6 +86,7 @@ public class FillPermitsListFix extends LocalQuickFixAndIntentionActionOnPsiElem
|
||||
}
|
||||
|
||||
private static void reportError(@NotNull Project project, @NotNull @NlsContexts.HintText String message) {
|
||||
if (IntentionPreviewUtils.isIntentionPreviewActive()) return;
|
||||
Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor();
|
||||
if (editor == null) return;
|
||||
HintManager.getInstance().showErrorHint(editor, message);
|
||||
|
||||
Reference in New Issue
Block a user