use of com.intellij.openapi.fileTypes.MockFileTypeManager in project intellij-elixir by KronicDeth.
the class ParsingTestCase method registerProjectFileIndex.
private void registerProjectFileIndex(MessageBus messageBus) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {
DirectoryIndex directoryIndex = registerDirectoryIndex(messageBus);
FileTypeRegistry fileTypeRegistry = new MockFileTypeManager();
myProject.registerService(ProjectFileIndex.class, new ProjectFileIndexImpl(myProject, directoryIndex, fileTypeRegistry));
}
Aggregations