From 88c6ee1eb31c96b2e0ed490dd9ea9bd070058ec3 Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 10 Nov 2016 15:28:58 +0100 Subject: [PATCH] AntChangeContextFix doesn't need write action --- .../com/intellij/lang/ant/quickfix/AntChangeContextFix.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/ant/src/com/intellij/lang/ant/quickfix/AntChangeContextFix.java b/plugins/ant/src/com/intellij/lang/ant/quickfix/AntChangeContextFix.java index 21945f4943d8..415d8faf834c 100644 --- a/plugins/ant/src/com/intellij/lang/ant/quickfix/AntChangeContextFix.java +++ b/plugins/ant/src/com/intellij/lang/ant/quickfix/AntChangeContextFix.java @@ -54,6 +54,11 @@ public class AntChangeContextFix extends BaseIntentionAction { return true; } + @Override + public boolean startInWriteAction() { + return false; + } + public void invoke(@NotNull final Project project, final Editor editor, final PsiFile file) throws IncorrectOperationException { final HectorComponent component = new HectorComponent(file); //final JComponent focusComponent = findComponentToFocus(component);