Java 类com.intellij.util.indexing.DefaultFileTypeSpecificInputFilter 实例源码

项目:intellij-ce-playground    文件:XmlIndex.java   
@Override
@NotNull
public FileBasedIndex.InputFilter getInputFilter() {
  return new DefaultFileTypeSpecificInputFilter(XmlFileType.INSTANCE, DTDFileType.INSTANCE) {
    @Override
    public boolean acceptInput(@NotNull final VirtualFile file) {
      FileType fileType = file.getFileType();
      final String extension = file.getExtension();
      return XmlFileType.INSTANCE.equals(fileType) && "xsd".equals(extension) ||
             DTDFileType.INSTANCE.equals(fileType) && "dtd".equals(extension);
    }
  };
}
项目:tools-idea    文件:XmlIndex.java   
public FileBasedIndex.InputFilter getInputFilter() {
  return new DefaultFileTypeSpecificInputFilter(XmlFileType.INSTANCE, DTDFileType.INSTANCE) {
    public boolean acceptInput(final VirtualFile file) {
      FileType fileType = file.getFileType();
      final String extension = file.getExtension();
      return XmlFileType.INSTANCE.equals(fileType) && "xsd".equals(extension) ||
             DTDFileType.INSTANCE.equals(fileType) && "dtd".equals(extension);
    }
  };
}
项目:consulo-xml    文件:XmlIndex.java   
@Override
@NotNull
public FileBasedIndex.InputFilter getInputFilter()
{
    return new DefaultFileTypeSpecificInputFilter(XmlFileType.INSTANCE, DTDFileType.INSTANCE)
    {
        @Override
        public boolean acceptInput(@Nullable Project project, @NotNull final VirtualFile file)
        {
            FileType fileType = file.getFileType();
            final String extension = file.getExtension();
            return XmlFileType.INSTANCE.equals(fileType) && "xsd".equals(extension) || DTDFileType.INSTANCE.equals(fileType) && "dtd".equals(extension);
        }
    };
}
项目:consulo-xml    文件:RelaxSymbolIndex.java   
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
  return new DefaultFileTypeSpecificInputFilter(XmlFileType.INSTANCE, RncFileType.getInstance()) {
    @Override
    public boolean acceptInput(@Nullable Project project, @NotNull VirtualFile file) {
      return !(file.getFileSystem() instanceof ArchiveFileSystem);
    }
  };
}
项目:consulo-java    文件:BytecodeAnalysisIndex.java   
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
  return new DefaultFileTypeSpecificInputFilter(JavaClassFileType.INSTANCE) {
    @Override
    public boolean acceptInput(@Nullable Project project, @NotNull VirtualFile file) {
      return ourEnabled && super.acceptInput(project, file);
    }
  };
}
项目:consulo-java    文件:JavaNullMethodArgumentIndex.java   
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
    return new DefaultFileTypeSpecificInputFilter(JavaFileType.INSTANCE)
    {
        @Override
        public boolean acceptInput(@Nullable Project project, @NotNull VirtualFile file)
        {
            return JavaStubElementTypes.JAVA_FILE.shouldBuildStubFor(file);
        }
    };
}
项目:consulo-unity3d    文件:Unity3dMetaIndexExtension.java   
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
    return new DefaultFileTypeSpecificInputFilter(Unity3dMetaFileType.INSTANCE);
}
项目:lombok-intellij-plugin    文件:LombokConfigIndex.java   
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
  return new DefaultFileTypeSpecificInputFilter(LombokConfigFileType.INSTANCE);
}
项目:consulo-xml    文件:DomFileIndex.java   
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
    return new DefaultFileTypeSpecificInputFilter(XmlFileType.INSTANCE);
}
项目:consulo-java    文件:JavaFunctionalExpressionIndex.java   
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
    return new DefaultFileTypeSpecificInputFilter(JavaFileType.INSTANCE);
}