From f2c4ad694abab803b7ce81d7506a4533a81b939b Mon Sep 17 00:00:00 2001 From: marhali Date: Sat, 8 Jan 2022 13:49:34 +0100 Subject: [PATCH] allow tool-window rendering in dumb mode --- CHANGELOG.md | 3 ++- .../marhali/easyi18n/service/TranslatorToolWindowFactory.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4613cb..2e2ef32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ - Key focus within tree or table view after translation change ### Changed -- update Qodana to latest version +- Update Qodana to latest version +- Allow tool-window rendering in dumb mode ## [1.7.1] ### Fixed diff --git a/src/main/java/de/marhali/easyi18n/service/TranslatorToolWindowFactory.java b/src/main/java/de/marhali/easyi18n/service/TranslatorToolWindowFactory.java index fb6a6e7..9a4436f 100644 --- a/src/main/java/de/marhali/easyi18n/service/TranslatorToolWindowFactory.java +++ b/src/main/java/de/marhali/easyi18n/service/TranslatorToolWindowFactory.java @@ -1,6 +1,7 @@ package de.marhali.easyi18n.service; import com.intellij.openapi.actionSystem.AnAction; +import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.Project; import com.intellij.openapi.wm.ToolWindow; import com.intellij.openapi.wm.ToolWindowFactory; @@ -22,7 +23,7 @@ import java.util.ResourceBundle; * Tool window factory which will represent the entire ui for this plugin. * @author marhali */ -public class TranslatorToolWindowFactory implements ToolWindowFactory { +public class TranslatorToolWindowFactory implements ToolWindowFactory, DumbAware { @Override public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {