mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable fixes in batch mode (IDEA-CR-21292)
This commit is contained in:
+1
-2
@@ -17,7 +17,6 @@ package com.intellij.refactoring.invertBoolean;
|
||||
|
||||
import com.intellij.openapi.actionSystem.CommonDataKeys;
|
||||
import com.intellij.openapi.actionSystem.DataContext;
|
||||
import com.intellij.openapi.application.TransactionGuard;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.editor.Editor;
|
||||
import com.intellij.openapi.editor.ScrollType;
|
||||
@@ -73,7 +72,7 @@ public class InvertBooleanHandler implements RefactoringActionHandler {
|
||||
}
|
||||
PsiElement element = delegate.adjustElement(elements[0], project, null);
|
||||
if (element != null && PsiElementRenameHandler.canRename(project, null, element)) {
|
||||
TransactionGuard.getInstance().submitTransactionAndWait(() -> new InvertBooleanDialog(element).show());
|
||||
new InvertBooleanDialog(element).show();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+5
@@ -49,6 +49,11 @@ class BooleanVariableAlwaysNegatedInspectionBase extends BaseInspection {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean buildQuickFixesOnlyForOnTheFlyErrors() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaseInspectionVisitor buildVisitor() {
|
||||
return new BooleanVariableAlwaysNegatedVisitor();
|
||||
|
||||
+5
@@ -47,6 +47,11 @@ public class NegativelyNamedBooleanVariableInspectionBase extends BaseInspection
|
||||
return InspectionGadgetsBundle.message("negatively.named.boolean.variable.problem.descriptor");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean buildQuickFixesOnlyForOnTheFlyErrors() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BaseInspectionVisitor buildVisitor() {
|
||||
return new NegativelyNamedBooleanVariableVisitor();
|
||||
|
||||
Reference in New Issue
Block a user