本文整理汇总了Java中com.intellij.openapi.fileTypes.EditorHighlighterProvider类的典型用法代码示例。如果您正苦于以下问题:Java EditorHighlighterProvider类的具体用法?Java EditorHighlighterProvider怎么用?Java EditorHighlighterProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EditorHighlighterProvider类属于com.intellij.openapi.fileTypes包,在下文中一共展示了EditorHighlighterProvider类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GroovyFileType
import com.intellij.openapi.fileTypes.EditorHighlighterProvider; //导入依赖的package包/类
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);
}
示例2: GroovyFileType
import com.intellij.openapi.fileTypes.EditorHighlighterProvider; //导入依赖的package包/类
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);
}
});
}
示例3: LatteFileType
import com.intellij.openapi.fileTypes.EditorHighlighterProvider; //导入依赖的package包/类
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);
}
});
}
示例4: VtlFileType
import com.intellij.openapi.fileTypes.EditorHighlighterProvider; //导入依赖的package包/类
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);
}
});
}
示例5: DustFileType
import com.intellij.openapi.fileTypes.EditorHighlighterProvider; //导入依赖的package包/类
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);
}
});
}