mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[devkit] ToggleHighlightingMarkupAction: DumbAware
GitOrigin-RevId: 376cc796b269a44e4f296979cfaf536e89feffac
This commit is contained in:
committed by
intellij-monorepo-bot
parent
797769f682
commit
aaab9175dd
@@ -1,11 +1,10 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package org.jetbrains.idea.devkit.actions;
|
||||
|
||||
import com.intellij.codeInsight.daemon.impl.DaemonCodeAnalyzerEx;
|
||||
import com.intellij.codeInsight.daemon.impl.HighlightInfo;
|
||||
import com.intellij.lang.annotation.HighlightSeverity;
|
||||
import com.intellij.openapi.actionSystem.ActionUpdateThread;
|
||||
import com.intellij.openapi.actionSystem.AnAction;
|
||||
import com.intellij.openapi.actionSystem.AnActionEvent;
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys;
|
||||
import com.intellij.openapi.application.WriteAction;
|
||||
@@ -16,6 +15,7 @@ import com.intellij.openapi.command.UndoConfirmationPolicy;
|
||||
import com.intellij.openapi.editor.Document;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.ex.util.EditorUtil;
|
||||
import com.intellij.openapi.project.DumbAwareAction;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.TextRange;
|
||||
import com.intellij.psi.PsiFile;
|
||||
@@ -31,7 +31,7 @@ import java.util.regex.Pattern;
|
||||
/**
|
||||
* @author gregsh
|
||||
*/
|
||||
public class ToggleHighlightingMarkupAction extends AnAction {
|
||||
public class ToggleHighlightingMarkupAction extends DumbAwareAction {
|
||||
@Override
|
||||
public void update(@NotNull AnActionEvent e) {
|
||||
Editor editor = e.getData(CommonDataKeys.EDITOR);
|
||||
@@ -197,7 +197,6 @@ public class ToggleHighlightingMarkupAction extends AnAction {
|
||||
}
|
||||
if (opening) {
|
||||
sb.append(" descr=\"").append(cur.getDescription()).append("\"");
|
||||
|
||||
}
|
||||
sb.append(">");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user