mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
tests: allow tree access for the file in an opened editor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user