本文整理匯總了Java中com.intellij.ide.highlighter.custom.CustomFileHighlighter類的典型用法代碼示例。如果您正苦於以下問題:Java CustomFileHighlighter類的具體用法?Java CustomFileHighlighter怎麽用?Java CustomFileHighlighter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CustomFileHighlighter類屬於com.intellij.ide.highlighter.custom包,在下文中一共展示了CustomFileHighlighter類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: buildLanguageFoldRegions
import com.intellij.ide.highlighter.custom.CustomFileHighlighter; //導入依賴的package包/類
@Override
protected void buildLanguageFoldRegions(@NotNull List<FoldingDescriptor> descriptors,
@NotNull PsiElement root,
@NotNull Document document,
boolean quick) {
FileType fileType = root.getContainingFile().getFileType();
if (!(fileType instanceof CustomSyntaxTableFileType)) {
return;
}
CustomFileHighlighter highlighter = new CustomFileHighlighter(((CustomSyntaxTableFileType) fileType).getSyntaxTable());
buildBraceMatcherBasedFolding(descriptors, root, document, highlighter);
}
示例2: create
import com.intellij.ide.highlighter.custom.CustomFileHighlighter; //導入依賴的package包/類
@Override
@Nullable
public SyntaxHighlighter create(@NotNull final FileType fileType, @Nullable final Project project, @Nullable final VirtualFile file) {
if (fileType instanceof AbstractFileType) {
return new CustomFileHighlighter(((CustomSyntaxTableFileType) fileType).getSyntaxTable());
}
return null;
}
示例3: create
import com.intellij.ide.highlighter.custom.CustomFileHighlighter; //導入依賴的package包/類
@Override
@Nullable
public SyntaxHighlighter create(final FileType fileType, @Nullable final Project project, @Nullable final VirtualFile file) {
if (fileType instanceof AbstractFileType) {
return new CustomFileHighlighter(((CustomSyntaxTableFileType) fileType).getSyntaxTable());
}
return null;
}
示例4: getHighlighter
import com.intellij.ide.highlighter.custom.CustomFileHighlighter; //導入依賴的package包/類
@Override
@NotNull
public SyntaxHighlighter getHighlighter() {
return new CustomFileHighlighter(SYNTAX_TABLE);
}
示例5: getHighlighter
import com.intellij.ide.highlighter.custom.CustomFileHighlighter; //導入依賴的package包/類
@Override
@Nonnull
public SyntaxHighlighter getHighlighter() {
return new CustomFileHighlighter(SYNTAX_TABLE);
}