allow tool-window rendering in dumb mode

This commit is contained in:
marhali 2022-01-08 13:49:34 +01:00
parent cf177c4373
commit f2c4ad694a
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,8 @@
- Key focus within tree or table view after translation change - Key focus within tree or table view after translation change
### Changed ### Changed
- update Qodana to latest version - Update Qodana to latest version
- Allow tool-window rendering in dumb mode
## [1.7.1] ## [1.7.1]
### Fixed ### Fixed

View File

@ -1,6 +1,7 @@
package de.marhali.easyi18n.service; package de.marhali.easyi18n.service;
import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.project.DumbAware;
import com.intellij.openapi.project.Project; import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow; import com.intellij.openapi.wm.ToolWindow;
import com.intellij.openapi.wm.ToolWindowFactory; 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. * Tool window factory which will represent the entire ui for this plugin.
* @author marhali * @author marhali
*/ */
public class TranslatorToolWindowFactory implements ToolWindowFactory { public class TranslatorToolWindowFactory implements ToolWindowFactory, DumbAware {
@Override @Override
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) { public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {