From ff71cff1699ddd3ee7dd1b3ff8143e463a6d51dd Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 17 Jun 2015 12:35:12 +0300 Subject: [PATCH] tests: allow tree access for the file in an opened editor --- .../intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java b/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java index 4c2dc76d4e01..b4b24bf06eec 100644 --- a/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java +++ b/java/testFramework/src/com/intellij/codeInsight/daemon/DaemonAnalyzerTestCase.java @@ -300,6 +300,12 @@ public abstract class DaemonAnalyzerTestCase extends CodeInsightTestCase { } } + @Override + protected Editor createEditor(@NotNull VirtualFile file) { + allowTreeAccessForFile(file); + return super.createEditor(file); + } + protected void allowTreeAccessForFile(@NotNull VirtualFile file) { myFileTreeAccessFilter.allowTreeAccessForFile(file); }