void () { VirtualFile file = createFile("/src/foo.bar", new byte[]{1, 0, 2, 3}); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDefaultEditorProvider( "t_default", "default"), myFixture.getTestRootDisposable()); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyFileEditorProvider( "t_passive", "passive", FileEditorPolicy.NONE), myFixture.getTestRootDisposable()); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_hide_default", "hide_default", FileEditorPolicy.HIDE_DEFAULT_EDITOR), myFixture.getTestRootDisposable()); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_hide_others_1", "hide_others_1", FileEditorPolicy.HIDE_OTHER_EDITORS), myFixture.getTestRootDisposable()); manager.openFile(file, false); assertOpenedFileEditorsNames(file, "hide_others_1"); manager.closeAllFiles(); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_hide_others_2", "hide_others_2", FileEditorPolicy.HIDE_OTHER_EDITORS), myFixture.getTestRootDisposable()); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_hide_others_3", "hide_others_3", FileEditorPolicy.HIDE_OTHER_EDITORS), myFixture.getTestRootDisposable()); manager.openFile(file, false); assertOpenedFileEditorsNames(file, "hide_others_1", "hide_others_2", "hide_others_3"); }