@Override public void createFileTypes(FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume( BuckFileType.INSTANCE, new FileNameMatcherEx() { @Override public String getPresentableString() { return BuckFileUtil.getBuildFileName(); } @Override public boolean acceptsCharSequence(CharSequence fileName) { String buildFileName = BuckFileUtil.getBuildFileName(); return StringUtilRt.endsWithIgnoreCase(fileName, buildFileName) || Comparing.equal(fileName, buildFileName, true); } }); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(EmojiResourceFileType.INSTANCE, new FileNameMatcher() { @Override public boolean accept(@NotNull String s) { return s.equals(".emojirc"); } @NotNull @Override public String getPresentableString() { return ".emojirc"; } }); }
@Override public void createFileTypes(@NotNull final FileTypeConsumer consumer) { consumer.consume( FlexibleSearchFileType.getInstance(), FlexibleSearchFileType.getInstance().getDefaultExtension() ); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { WeaveFileType weaveFileType = WeaveFileType.getInstance(); for (String extension : weaveFileType.getExtensions()) fileTypeConsumer.consume(weaveFileType, extension); }
public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { super.createFileTypes(fileTypeConsumer); fileTypeConsumer.consume(CloudSlangFileType.INSTANCE, new FileNameMatcher() { @Override public boolean accept(@NonNls @NotNull String s) { return CloudSlangFileUtils.isCloudSlangFile(s); } @NotNull @Override public String getPresentableString() { return "sl;sl.yaml;sl.yml;prop.sl"; } }); }
@NotNull private List<FileNameMatcher> parse(@Nullable String semicolonDelimited) { if (semicolonDelimited == null) { return Collections.emptyList(); } StringTokenizer tokenizer = new StringTokenizer(semicolonDelimited, FileTypeConsumer.EXTENSION_DELIMITER, false); ArrayList<FileNameMatcher> list = new ArrayList<>(); while (tokenizer.hasMoreTokens()) { list.add(new ExtensionFileNameMatcher(tokenizer.nextToken().trim())); } return list; }
public void createFileTypes(final @NotNull FileTypeConsumer consumer) { final Set<String> processed = new THashSet<String>(); final String[] readerFormatNames = ImageIO.getReaderFormatNames(); for (String format : readerFormatNames) { final String ext = format.toLowerCase(); processed.add(ext); } processed.add(IfsUtil.ICO_FORMAT.toLowerCase()); consumer.consume(imageFileType, StringUtil.join(processed, FileTypeConsumer.EXTENSION_DELIMITER)); }
@Override public void createFileTypes(@NotNull final FileTypeConsumer consumer) { consumer.consume(HtmlFileType.INSTANCE, "html;htm;sht;shtm;shtml"); consumer.consume(XHtmlFileType.INSTANCE, "xhtml"); consumer.consume(DTDFileType.INSTANCE, "dtd;ent;mod;elt"); consumer.consume(XmlFileType.INSTANCE, "xml;xsd;tld;xsl;jnlp;wsdl;jhm;ant;xul;xslt;rng;fxml;jrxml"); TypedHandler.registerBaseLanguageQuoteHandler(XMLLanguage.class, TypedHandler.getQuoteHandlerForType(XmlFileType.INSTANCE)); }
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(AndroidIdlFileType.ourFileType, AndroidIdlFileType.DEFAULT_ASSOCIATED_EXTENSION); consumer.consume(AndroidRenderscriptFileType.INSTANCE, AndroidRenderscriptFileType.fileNameMatchers()); consumer.consume(AndroidNinePatchFileType.INSTANCE, AndroidNinePatchFileType.EXTENSION); consumer.consume(AndroidNavigationFileType.INSTANCE, AndroidNavigationFileType.EXTENSION); }
@Override public void createFileTypes(@NotNull final FileTypeConsumer consumer) { FileNameMatcher[] matchers = ProjectViewStorageManager.VALID_EXTENSIONS .stream() .map(ExtensionFileNameMatcher::new) .toArray(ExtensionFileNameMatcher[]::new); consumer.consume(ProjectViewFileType.INSTANCE, matchers); }
@Override public void createFileTypes(@NotNull final FileTypeConsumer consumer) { ImmutableList<FileNameMatcher> fileNameMatchers = ImmutableList.<FileNameMatcher>builder() .addAll(BuildSystemProvider.defaultBuildSystem().buildLanguageFileTypeMatchers()) .add() .build(); consumer.consume(BuildFileType.INSTANCE, fileNameMatchers.toArray(new FileNameMatcher[0])); }
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(Unity3dMetaFileType.INSTANCE); consumer.consume(Unity3dBinaryAssetFileType.INSTANCE); consumer.consume(Unity3dYMLAssetFileType.INSTANCE); }
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(VisualStudioSolutionFileType.INSTANCE); for(KeyedLazyInstanceEP<VisualStudioLanguageImportProvider> ep : VisualStudioLanguageImportProvider.EP_NAME.getExtensions()) { consumer.consume(VisualStudioProjectFileType.INSTANCE, ep.getKey()); } }
public void createFileTypes(@NotNull final FileTypeConsumer consumer) { consumer.consume(HtmlFileType.INSTANCE, "html;htm;sht;shtm;shtml"); consumer.consume(XHtmlFileType.INSTANCE, "xhtml"); consumer.consume(DTDFileType.INSTANCE, "dtd;ent;mod;elt"); consumer.consume(XmlFileType.INSTANCE, "xml;xsd;tld;xsl;jnlp;wsdl;jhm;ant;xul;xslt;rng;fxml"); TypedHandler.registerBaseLanguageQuoteHandler(XMLLanguage.class, TypedHandler.getQuoteHandlerForType(XmlFileType.INSTANCE)); }
/** * Assigns file types with languages. * * @param consumer file types consumer */ @Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consume(consumer, IgnoreFileType.INSTANCE); for (final IgnoreLanguage language : IgnoreBundle.LANGUAGES) { consume(consumer, language.getFileType()); } }
@Override public void createFileTypes(@Nonnull FileTypeConsumer consumer) { for (LanguageVersion languageVersion : SandLanguage.INSTANCE.getVersions()) { BaseSandLanguageVersion sandLanguageVersion = (BaseSandLanguageVersion) languageVersion; consumer.consume(sandLanguageVersion.getFileType()); } }
public void createFileTypes(@NotNull final FileTypeConsumer consumer) { consumer.consume(HtmlFileType.INSTANCE, "html;htm;sht;shtm;shtml"); consumer.consume(XHtmlFileType.INSTANCE, "xhtml"); consumer.consume(DTDFileType.INSTANCE, "dtd;ent;mod;elt"); consumer.consume(XmlFileType.INSTANCE, "xml;xsd;tld;xsl;jnlp;wsdl;jhm;ant;xul;xslt;rng;"); TypedHandler.registerBaseLanguageQuoteHandler(XMLLanguage.class, TypedHandler.getQuoteHandlerForType(XmlFileType.INSTANCE)); }
@Override public void createFileTypes(final @NotNull FileTypeConsumer consumer) { for(String exp : VtlFileType.INSTANCE.getExtensions()) { consumer.consume(VtlFileType.INSTANCE, exp); } }
@Override public void createFileTypes(@NotNull final FileTypeConsumer consumer) { consumer.consume(JarArchiveFileType.INSTANCE, "jar;war;apk"); consumer.consume(JavaClassFileType.INSTANCE); consumer.consume(JavaFileType.INSTANCE); consumer.consume(JModFileType.INSTANCE); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(TSFileType.INSTANCE, "cs" + FileTypeConsumer.EXTENSION_DELIMITER + "gui"); fileTypeConsumer.consume(TSMisFileType.INSTANCE, "mis"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(AppleScriptFileType.INSTANCE, StringUtil.join(AppleScriptFileType.INSTANCE.getExtensions(), FileTypeConsumer.EXTENSION_DELIMITER)); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(OclFileType.INSTANCE, "ml"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(RmlInterfaceFileType.INSTANCE, "rei"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(OclInterfaceFileType.INSTANCE, "mli"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(RmlFileType.INSTANCE, "re"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(Ml4FileType.INSTANCE, "ml4"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(GCMLanguageType.INSTANCE, GCMLanguageType.INSTANCE.getDefaultExtension()); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(SoyFileType.INSTANCE, "soy"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { final FileType fileType = consumer.getStandardFileTypeByName("XML"); assert fileType != null; consumer.consume(fileType, BPMN_EXTENSION); }
@Override public void createFileTypes(@NotNull final FileTypeConsumer consumer) { consumer.consume(ImpexFileType.getInstance(), ImpexFileType.getInstance().getDefaultExtension()); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(CoffigYamlFileType.INSTANCE, new ExactFileNameMatcher("application.yaml"), new ExactFileNameMatcher("application.yml")); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(SimpleFileType.INSTANCE, "s"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(ThemeBlueprintsFileType.INSTANCE); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(CsvFileType.INSTANCE, String.join(FileTypeConsumer.EXTENSION_DELIMITER, new String[]{"csv", "CSV", "Csv"})); }
@Override public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(PrologFileType.INSTANCE); }
public void createFileTypes(@NotNull FileTypeConsumer consumer) { consumer.consume(RamlFileType.INSTANCE, RamlFileType.EXTENSIONS); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(MelFileType.getInstance(), "mel"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(NixFileType.INSTANCE, "nix"); }
@Override public void createFileTypes(@NotNull FileTypeConsumer fileTypeConsumer) { fileTypeConsumer.consume(WeexFileType.INSTANCE); }