Java Code Examples for com.intellij.psi.FileViewProvider#getFileType()
The following examples show how to use
com.intellij.psi.FileViewProvider#getFileType() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RmlParserDefinition.java From reasonml-idea-plugin with MIT License | 4 votes |
@NotNull public PsiFile createFile(@NotNull FileViewProvider viewProvider) { return viewProvider.getFileType() instanceof RmlInterfaceFileType ? new RmlInterfaceFile(viewProvider) : new RmlFile(viewProvider); }
Example 2
Source File: OclParserDefinition.java From reasonml-idea-plugin with MIT License | 4 votes |
@NotNull public PsiFile createFile(@NotNull FileViewProvider viewProvider) { return viewProvider.getFileType() instanceof OclInterfaceFileType ? new OclInterfaceFile(viewProvider) : new OclFile(viewProvider); }