From 35c90c04a858b0655aff22cd9e669566cba94a8b Mon Sep 17 00:00:00 2001 From: Hanxiao Liu Date: Sun, 19 Jan 2020 09:35:56 +0800 Subject: [PATCH] Fix HIDE_DEFAULT_EDITOR is only for DeumAware issue --- .../azure/hdinsight/jobs/framework/JobViewEditorProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/jobs/framework/JobViewEditorProvider.java b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/jobs/framework/JobViewEditorProvider.java index d1e512ef28..946b482e62 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/jobs/framework/JobViewEditorProvider.java +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/src/com/microsoft/azure/hdinsight/jobs/framework/JobViewEditorProvider.java @@ -23,6 +23,7 @@ import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.fileEditor.*; +import com.intellij.openapi.project.DumbAware; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.Key; @@ -34,7 +35,7 @@ /* All the tool window should implement interface FileEditorProvider. */ -public class JobViewEditorProvider implements FileEditorProvider { +public class JobViewEditorProvider implements FileEditorProvider, DumbAware { public static Key JOB_VIEW_KEY = new Key<>("com.microsoft.azure.hdinsight.jobview"); public static Key JOB_VIEW_UUID = new Key<>("com.microsoft.azure.hdinsight.jobview.uuid");