当前位置: 首页>>代码示例>>Java>>正文


Java SingleRootFileViewProvider.isTooLargeForIntelligence方法代码示例

本文整理汇总了Java中com.intellij.psi.SingleRootFileViewProvider.isTooLargeForIntelligence方法的典型用法代码示例。如果您正苦于以下问题:Java SingleRootFileViewProvider.isTooLargeForIntelligence方法的具体用法?Java SingleRootFileViewProvider.isTooLargeForIntelligence怎么用?Java SingleRootFileViewProvider.isTooLargeForIntelligence使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.psi.SingleRootFileViewProvider的用法示例。


在下文中一共展示了SingleRootFileViewProvider.isTooLargeForIntelligence方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: shouldInspect

import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean shouldInspect(@NotNull PsiElement psiRoot) {
  if (ApplicationManager.getApplication().isUnitTestMode()) return true;

  final FileHighlightingSetting settingForRoot = getHighlightingSettingForRoot(psiRoot);
  if (settingForRoot == FileHighlightingSetting.SKIP_HIGHLIGHTING ||
      settingForRoot == FileHighlightingSetting.SKIP_INSPECTION) {
    return false;
  }
  final Project project = psiRoot.getProject();
  final VirtualFile virtualFile = psiRoot.getContainingFile().getVirtualFile();
  if (virtualFile == null || !virtualFile.isValid()) return false;

  if (ProjectCoreUtil.isProjectOrWorkspaceFile(virtualFile)) return false;

  final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
  if (ProjectScope.getLibrariesScope(project).contains(virtualFile) && !fileIndex.isInContent(virtualFile)) return false;

  return !SingleRootFileViewProvider.isTooLargeForIntelligence(virtualFile);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:21,代码来源:HighlightingSettingsPerFile.java

示例2: shouldInspect

import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
public static boolean shouldInspect(@NotNull PsiElement psiRoot) {
  if (ApplicationManager.getApplication().isUnitTestMode()) return true;

  if (!shouldHighlight(psiRoot)) return false;
  final Project project = psiRoot.getProject();
  final VirtualFile virtualFile = psiRoot.getContainingFile().getVirtualFile();
  if (virtualFile == null || !virtualFile.isValid()) return false;

  if (ProjectCoreUtil.isProjectOrWorkspaceFile(virtualFile)) return false;

  final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
  if (ProjectScope.getLibrariesScope(project).contains(virtualFile) && !fileIndex.isInContent(virtualFile)) return false;

  if (SingleRootFileViewProvider.isTooLargeForIntelligence(virtualFile)) return false;

  final HighlightingSettingsPerFile component = HighlightingSettingsPerFile.getInstance(project);
  if (component == null) return true;

  final FileHighlightingSetting settingForRoot = component.getHighlightingSettingForRoot(psiRoot);
  return settingForRoot != FileHighlightingSetting.SKIP_INSPECTION;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:22,代码来源:HighlightLevelUtil.java

示例3: shouldInspect

import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean shouldInspect(@Nonnull PsiElement psiRoot) {
  if (ApplicationManager.getApplication().isUnitTestMode()) return true;

  if (!shouldHighlight(psiRoot)) return false;
  final Project project = psiRoot.getProject();
  final VirtualFile virtualFile = psiRoot.getContainingFile().getVirtualFile();
  if (virtualFile == null || !virtualFile.isValid()) return false;

  if (ProjectCoreUtil.isProjectOrWorkspaceFile(virtualFile)) return false;

  final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
  if (ProjectScope.getLibrariesScope(project).contains(virtualFile) && !fileIndex.isInContent(virtualFile)) return false;

  if (SingleRootFileViewProvider.isTooLargeForIntelligence(virtualFile)) return false;

  final FileHighlightingSetting settingForRoot = getHighlightingSettingForRoot(psiRoot);
  return settingForRoot != FileHighlightingSetting.SKIP_INSPECTION;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:20,代码来源:HighlightingSettingsPerFile.java

示例4: shouldInspect

import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
public static boolean shouldInspect(@Nonnull PsiElement psiRoot) {
  if (ApplicationManager.getApplication().isUnitTestMode()) return true;

  if (!shouldHighlight(psiRoot)) return false;
  final Project project = psiRoot.getProject();
  final VirtualFile virtualFile = psiRoot.getContainingFile().getVirtualFile();
  if (virtualFile == null || !virtualFile.isValid()) return false;

  if (ProjectCoreUtil.isProjectOrWorkspaceFile(virtualFile)) return false;

  final ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
  if (ProjectScope.getLibrariesScope(project).contains(virtualFile) && !fileIndex.isInContent(virtualFile)) return false;

  if (SingleRootFileViewProvider.isTooLargeForIntelligence(virtualFile)) return false;

  final HighlightingSettingsPerFile component = HighlightingSettingsPerFile.getInstance(project);
  if (component == null) return true;

  final FileHighlightingSetting settingForRoot = component.getHighlightingSettingForRoot(psiRoot);
  return settingForRoot != FileHighlightingSetting.SKIP_INSPECTION;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:22,代码来源:HighlightLevelUtil.java

示例5: isTooLarge

import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
private boolean isTooLarge(@NotNull VirtualFile file) {
  if (SingleRootFileViewProvider.isTooLargeForIntelligence(file)) {
    return !myNoLimitCheckTypes.contains(file.getFileType()) || SingleRootFileViewProvider.isTooLargeForContentLoading(file);
  }
  return false;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:FileBasedIndexImpl.java

示例6: isTooLarge

import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
private boolean isTooLarge(@Nonnull VirtualFile file) {
  if (SingleRootFileViewProvider.isTooLargeForIntelligence(file)) {
    return !myNoLimitCheckTypes.contains(file.getFileType()) || SingleRootFileViewProvider.isTooLargeForContentLoading(file);
  }
  return false;
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:FileBasedIndexImpl.java


注:本文中的com.intellij.psi.SingleRootFileViewProvider.isTooLargeForIntelligence方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。