Java 类com.intellij.openapi.fileTypes.FileTypeEditorHighlighterProviders 实例源码

项目:bamboo-soy    文件:SoyFileType.java   
private SoyFileType() {
  super(SoyLanguage.INSTANCE);
  FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(
      this,
      (@Nullable Project project,
          @NotNull FileType fileType,
          @Nullable VirtualFile virtualFile,
          @NotNull EditorColorsScheme editorColorsScheme) ->
          new SoyLayeredHighlighter(project, virtualFile, editorColorsScheme));
}
项目:intellij-ce-playground    文件:CustomizableLanguageCodeStylePanel.java   
@Override
@Nullable
protected EditorHighlighter createHighlighter(final EditorColorsScheme scheme) {
  FileType fileType = getFileType();
  return FileTypeEditorHighlighterProviders.INSTANCE.forFileType(fileType).getEditorHighlighter(
    ProjectUtil.guessCurrentProject(getPanel()), fileType, null, scheme);
}
项目:intellij-ce-playground    文件:GroovyFileType.java   
private GroovyFileType() {
  super(GroovyLanguage.INSTANCE);
  FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() {
    @Override
    public EditorHighlighter getEditorHighlighter(@Nullable Project project,
                                                  @NotNull FileType fileType, @Nullable VirtualFile virtualFile,
                                                  @NotNull EditorColorsScheme colors) {
      return new GroovyEditorHighlighter(colors);
    }
  });
  GROOVY_FILE_TYPES.add(this);
}
项目:tools-idea    文件:MultilanguageCodeStyleAbstractPanel.java   
@Override
@Nullable
protected EditorHighlighter createHighlighter(final EditorColorsScheme scheme) {
  FileType fileType = getFileType();
  return FileTypeEditorHighlighterProviders.INSTANCE.forFileType(fileType).getEditorHighlighter(
    ProjectUtil.guessCurrentProject(getPanel()), fileType, null, scheme);
}
项目:tools-idea    文件:GroovyFileType.java   
private GroovyFileType() {
  super(new GroovyLanguage());
  FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() {
    @Override
    public EditorHighlighter getEditorHighlighter(@Nullable Project project,
                                                  @NotNull FileType fileType, @Nullable VirtualFile virtualFile,
                                                  @NotNull EditorColorsScheme colors) {
      return new GroovyEditorHighlighter(colors);
    }
  });
}
项目:intellij-latte    文件:LatteFileType.java   
private LatteFileType() {
    super(LatteLanguage.INSTANCE);

    FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() {
        public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme colors) {
            return new LatteEditorHighlighter(project, virtualFile,colors);
        }
    });
}
项目:consulo    文件:CustomizableLanguageCodeStylePanel.java   
@Override
@Nullable
protected EditorHighlighter createHighlighter(final EditorColorsScheme scheme) {
  FileType fileType = getFileType();
  return FileTypeEditorHighlighterProviders.INSTANCE.forFileType(fileType).getEditorHighlighter(
          ProjectUtil.guessCurrentProject(getPanel()), fileType, null, scheme);
}
项目:consulo-apache-velocity    文件:VtlFileType.java   
private VtlFileType()
{
    super(VtlLanguage.INSTANCE);

    FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider()
    {
        @Override
        public EditorHighlighter getEditorHighlighter(@Nullable Project project, @NotNull FileType fileType, @Nullable VirtualFile virtualFile, @NotNull EditorColorsScheme colors)
        {
            return new VtlEditorHighlighter(project, virtualFile, colors);
        }
    });
}
项目:Intellij-Dust    文件:DustFileType.java   
private DustFileType() {
  super(DustLanguage.INSTANCE);
  // register highlighter - lazy singleton factory
  FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, new EditorHighlighterProvider() {
    public EditorHighlighter getEditorHighlighter(@Nullable Project project,
                                                  @NotNull FileType fileType,
                                                  @Nullable VirtualFile virtualFile,
                                                  @NotNull EditorColorsScheme editorColorsScheme) {
      return new DustLayeredSyntaxHighlighter(project, virtualFile, editorColorsScheme);
    }
  });
}
项目:consulo-javaee    文件:JspFileType.java   
protected JspFileType()
{
    super(JspLanguage.INSTANCE);

    FileTypeEditorHighlighterProviders.INSTANCE.addExplicitExtension(this, (project, fileType, virtualFile, colors) -> new JspEditorHighlighter(project, virtualFile, colors));
}