本文整理汇总了Java中com.intellij.codeInsight.highlighting.HighlightErrorFilter类的典型用法代码示例。如果您正苦于以下问题:Java HighlightErrorFilter类的具体用法?Java HighlightErrorFilter怎么用?Java HighlightErrorFilter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HighlightErrorFilter类属于com.intellij.codeInsight.highlighting包,在下文中一共展示了HighlightErrorFilter类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: hasErrorElements
import com.intellij.codeInsight.highlighting.HighlightErrorFilter; //导入依赖的package包/类
private static boolean hasErrorElements(@NotNull final PsiElement element) {
if (element instanceof PsiErrorElement) {
HighlightErrorFilter[] errorFilters = Extensions.getExtensions(HighlightErrorFilter.EP_NAME, element.getProject());
for (HighlightErrorFilter errorFilter : errorFilters) {
if (!errorFilter.shouldHighlightErrorElement((PsiErrorElement)element)) {
return false;
}
}
return true;
}
for (PsiElement child : element.getChildren()) {
if (hasErrorElements(child)) {
return true;
}
}
return false;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:18,代码来源:PsiErrorElementUtil.java
示例2: hasErrorElements
import com.intellij.codeInsight.highlighting.HighlightErrorFilter; //导入依赖的package包/类
private static boolean hasErrorElements(@Nonnull final PsiElement element) {
if (element instanceof PsiErrorElement) {
HighlightErrorFilter[] errorFilters = Extensions.getExtensions(HighlightErrorFilter.EP_NAME, element.getProject());
for (HighlightErrorFilter errorFilter : errorFilters) {
if (!errorFilter.shouldHighlightErrorElement((PsiErrorElement)element)) {
return false;
}
}
return true;
}
for (PsiElement child : element.getChildren()) {
if (hasErrorElements(child)) {
return true;
}
}
return false;
}
开发者ID:consulo,项目名称:consulo,代码行数:18,代码来源:PsiErrorElementUtil.java
示例3: DefaultHighlightVisitor
import com.intellij.codeInsight.highlighting.HighlightErrorFilter; //导入依赖的package包/类
public DefaultHighlightVisitor(@NotNull Project project, boolean highlightErrorElements, boolean runAnnotators, boolean batchMode) {
myProject = project;
myHighlightErrorElements = highlightErrorElements;
myRunAnnotators = runAnnotators;
myErrorFilters = Extensions.getExtensions(HighlightErrorFilter.EP_NAME, project);
myDumbService = DumbService.getInstance(project);
myBatchMode = batchMode;
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:DefaultHighlightVisitor.java
示例4: visitErrorElement
import com.intellij.codeInsight.highlighting.HighlightErrorFilter; //导入依赖的package包/类
private void visitErrorElement(final PsiErrorElement element) {
for(HighlightErrorFilter errorFilter: myErrorFilters) {
if (!errorFilter.shouldHighlightErrorElement(element)) {
return;
}
}
HighlightInfo info = createErrorElementInfo(element);
myHolder.add(info);
}
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:DefaultHighlightVisitor.java
示例5: visitErrorElement
import com.intellij.codeInsight.highlighting.HighlightErrorFilter; //导入依赖的package包/类
private void visitErrorElement(final PsiErrorElement element) {
for(HighlightErrorFilter errorFilter: myErrorFilters) {
if (!errorFilter.shouldHighlightErrorElement(element)) return;
}
HighlightInfo info = createErrorElementInfo(element);
myHolder.add(info);
}
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:8,代码来源:DefaultHighlightVisitor.java
示例6: DefaultHighlightVisitor
import com.intellij.codeInsight.highlighting.HighlightErrorFilter; //导入依赖的package包/类
DefaultHighlightVisitor(@Nonnull Project project,
boolean highlightErrorElements,
boolean runAnnotators,
boolean batchMode,
@Nonnull CachedAnnotators cachedAnnotators) {
myProject = project;
myHighlightErrorElements = highlightErrorElements;
myRunAnnotators = runAnnotators;
myCachedAnnotators = cachedAnnotators;
myErrorFilters = Extensions.getExtensions(HighlightErrorFilter.EP_NAME, project);
myDumbService = DumbService.getInstance(project);
myBatchMode = batchMode;
}
开发者ID:consulo,项目名称:consulo,代码行数:14,代码来源:DefaultHighlightVisitor.java
注:本文中的com.intellij.codeInsight.highlighting.HighlightErrorFilter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论