Search in sources :

Example 1 with MockFileTypeManager

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));
}
Also used : MockFileTypeManager(com.intellij.openapi.fileTypes.MockFileTypeManager) FileTypeRegistry(com.intellij.openapi.fileTypes.FileTypeRegistry)

Aggregations

FileTypeRegistry (com.intellij.openapi.fileTypes.FileTypeRegistry)1 MockFileTypeManager (com.intellij.openapi.fileTypes.MockFileTypeManager)1