Java Code Examples for com.intellij.openapi.fileTypes.FileTypeConsumer#consume()
The following examples show how to use
com.intellij.openapi.fileTypes.FileTypeConsumer#consume() .
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: BashFileTypeLoader.java From BashSupport with Apache License 2.0 | 5 votes |
public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(BashFileType.BASH_FILE_TYPE, BashFileType.SH_EXTENSION); consumer.consume(BashFileType.BASH_FILE_TYPE, BashFileType.BASH_EXTENSION); consumer.consume(BashFileType.BASH_FILE_TYPE, new ExactFileNameMatcher(BashFileType.BASHRC_FILENAME), new ExactFileNameMatcher(BashFileType.PROFILE_FILENAME), new ExactFileNameMatcher(BashFileType.BASH_LOGOUT_FILENAME), new ExactFileNameMatcher(BashFileType.BASH_PROFILE_FILENAME), new ExactFileNameMatcher(BashFileType.BASH_ALIASES_FILENAME)); }
Example 2
Source File: SandFileTypeFactory.java From consulo with Apache License 2.0 | 5 votes |
@Override public void createFileTypes(@Nonnull FileTypeConsumer consumer) { for (LanguageVersion languageVersion : SandLanguage.INSTANCE.getVersions()) { BaseSandLanguageVersion sandLanguageVersion = (BaseSandLanguageVersion) languageVersion; consumer.consume(sandLanguageVersion.getFileType()); } }
Example 3
Source File: WeaveFileTypeFactory.java From mule-intellij-plugins with Apache License 2.0 | 5 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { WeaveFileType weaveFileType = WeaveFileType.getInstance(); for (String extension : weaveFileType.getExtensions()) fileTypeConsumer.consume(weaveFileType, extension); }
Example 4
Source File: CypherFileTypeFactory.java From jetbrains-plugin-graph-database-support with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(CypherFileType.INSTANCE, String.join(";", FileTypeExtensionUtil.EXTENSIONS)); }
Example 5
Source File: KubernetesFileTypeFactory.java From intellij-kubernetes with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@NotNull final FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(KubernetesYamlFileType.INSTANCE, "kubernetes"); }
Example 6
Source File: PexFileTypeFactory.java From intellij-pants-plugin with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(ArchiveFileType.INSTANCE, "pex"); }
Example 7
Source File: HaxeFileTypeLoader.java From intellij-haxe with Apache License 2.0 | 4 votes |
public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume( HaxeFileType.HAXE_FILE_TYPE, new ExtensionFileNameMatcher(HaxeFileType.DEFAULT_EXTENSION)); }
Example 8
Source File: MyFileTypeFactory.java From svgtoandroid with MIT License | 4 votes |
@Override public void createFileTypes(FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(XmlFileType.INSTANCE,"svg"); }
Example 9
Source File: ShaderLabFileTypeFactory.java From consulo-unity3d with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@Nonnull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(ShaderLabFileType.INSTANCE); }
Example 10
Source File: SpecFileTypeFactory.java From Intellij-Plugin with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(SpecFileType.INSTANCE, SPEC_EXTENSION); fileTypeConsumer.consume(SpecFileType.INSTANCE, MD_EXTENSION); fileTypeConsumer.consume(ConceptFileType.INSTANCE, CONCEPT_EXTENSION); }
Example 11
Source File: SQFFileTypeFactory.java From arma-intellij-plugin with MIT License | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(SQFFileType.INSTANCE, "sqf"); }
Example 12
Source File: HXMLFileTypeFactory.java From intellij-haxe with Apache License 2.0 | 4 votes |
public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume( HXMLFileType.INSTANCE, new ExtensionFileNameMatcher(HXMLFileType.DEFAULT_EXTENSION)); }
Example 13
Source File: MindMapFileTypeFactory.java From netbeans-mmd-plugin with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@Nonnull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(MindMapFileType.INSTANCE, MindMapFileType.DEFAULT_EXTENSION); }
Example 14
Source File: ANTLRv4FileTypeFactory.java From intellij-plugin-v4 with BSD 3-Clause "New" or "Revised" License | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(ANTLRv4FileType.INSTANCE, "g4"); }
Example 15
Source File: RamlFileTypeFactory.java From mule-intellij-plugins with Apache License 2.0 | 4 votes |
public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(RamlFileType.INSTANCE, RamlFileType.EXTENSIONS); }
Example 16
Source File: CsvFileTypeFactory.java From intellij-csv-validator with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(CsvFileType.INSTANCE, String.join(FileTypeConsumer.EXTENSION_DELIMITER, new String[] {"csv"})); }
Example 17
Source File: SimpleFileTypeFactory.java From intellij-sdk-docs with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(SimpleFileType.INSTANCE); }
Example 18
Source File: NMMLFileTypeFactory.java From intellij-haxe with Apache License 2.0 | 4 votes |
public void createFileTypes(final @NotNull FileTypeConsumer consumer) { final NMMLFileType fileType = NMMLFileType.INSTANCE; consumer.consume(fileType, fileType.getDefaultExtension()); }
Example 19
Source File: EnforcedPlainTextFileTypeFactory.java From consulo with Apache License 2.0 | 4 votes |
@Override public void createFileTypes(final @Nonnull FileTypeConsumer consumer) { consumer.consume(myFileType, ""); }
Example 20
Source File: GraphQLFileTypeFactory.java From js-graphql-intellij-plugin with MIT License | 4 votes |
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(GraphQLFileType.INSTANCE, "graphql"); }