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()); manager.openFile(file, false); assertOpenedFileEditorsNames(file, "default"); manager.closeAllFiles(); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_hide_def_1", "hide_def_1", FileEditorPolicy.HIDE_DEFAULT_EDITOR), myFixture.getTestRootDisposable()); manager.openFile(file, false); assertOpenedFileEditorsNames(file, "hide_def_1"); manager.closeAllFiles(); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_hide_def_2", "hide_def_2", FileEditorPolicy.HIDE_DEFAULT_EDITOR), myFixture.getTestRootDisposable()); manager.openFile(file, false); assertOpenedFileEditorsNames(file, "hide_def_1", "hide_def_2"); manager.closeAllFiles(); FileEditorProvider.EP_FILE_EDITOR_PROVIDER.getPoint().registerExtension(new MyDumbAwareProvider( "t_passive", "passive", FileEditorPolicy.NONE), myFixture.getTestRootDisposable()); manager.openFile(file, false); assertOpenedFileEditorsNames(file, "hide_def_1", "hide_def_2", "passive"); assertEquals(3, manager.getAllEditors(file).length); }