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


Java FileBasedIndex.InputFilter方法代码示例

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


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

示例1: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@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);
    }
  };
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:XmlIndex.java

示例2: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
  return new FileBasedIndex.InputFilter() {
    @Override
    public boolean acceptInput(@NotNull VirtualFile file) {
      return PantsUtil.isBUILDFileName(file.getName());
    }
  };
}
 
开发者ID:pantsbuild,项目名称:intellij-pants-plugin,代码行数:11,代码来源:PantsBuildFileIndex.java

示例3: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
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);
    }
  };
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:11,代码来源:XmlIndex.java

示例4: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@Override
public FileBasedIndex.InputFilter getInputFilter() {
    return new FileBasedIndex.InputFilter() {
        @Override
        public boolean acceptInput(Project project, VirtualFile file) {
            if (file.getFileSystem() instanceof ArchiveFileSystem) {
              return false; // there is lots and lots of custom XML inside zip files
            }
            return file.getFileType() == XmlFileType.INSTANCE;
        }
    };
}
 
开发者ID:consulo,项目名称:consulo-xslt,代码行数:13,代码来源:XsltSymbolIndex.java

示例5: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@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);
		}
	};
}
 
开发者ID:consulo,项目名称:consulo-xml,代码行数:16,代码来源:XmlIndex.java

示例6: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@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);
    }
  };
}
 
开发者ID:consulo,项目名称:consulo-xml,代码行数:11,代码来源:RelaxSymbolIndex.java

示例7: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
public FileBasedIndex.InputFilter getInputFilter() {
    return new FileBasedIndex.InputFilter() {
        public boolean acceptInput(Project project, final VirtualFile file) {
            return VtlFileType.INSTANCE == file.getFileType();
        }
    };
}
 
开发者ID:consulo,项目名称:consulo-apache-velocity,代码行数:8,代码来源:VtlFileIndex.java

示例8: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@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);
    }
  };
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:11,代码来源:BytecodeAnalysisIndex.java

示例9: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@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);
		}
	};
}
 
开发者ID:consulo,项目名称:consulo-java,代码行数:14,代码来源:JavaNullMethodArgumentIndex.java

示例10: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
    return x -> x.getName().equals("MethodArgumentDroppedMatcher.php");
}
 
开发者ID:cedricziel,项目名称:idea-php-typo3-plugin,代码行数:6,代码来源:MethodArgumentDroppedIndex.java

示例11: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
    return LayoutIndex::isLayoutFile;
}
 
开发者ID:magento,项目名称:magento2-phpstorm-plugin,代码行数:6,代码来源:NamedComponentIndex.java

示例12: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
    return (virtualFile) -> virtualFile.getFileType() == YAMLFileType.YML;
}
 
开发者ID:cvette,项目名称:intellij-neos,代码行数:6,代码来源:NodeTypesYamlFileIndex.java

示例13: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
	return myInputFilter;
}
 
开发者ID:consulo,项目名称:consulo-unity3d,代码行数:7,代码来源:Unity3dYMLAssetIndexExtension.java

示例14: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
	return new DefaultFileTypeSpecificInputFilter(Unity3dMetaFileType.INSTANCE);
}
 
开发者ID:consulo,项目名称:consulo-unity3d,代码行数:7,代码来源:Unity3dMetaIndexExtension.java

示例15: getInputFilter

import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
  return new DefaultFileTypeSpecificInputFilter(LombokConfigFileType.INSTANCE);
}
 
开发者ID:mplushnikov,项目名称:lombok-intellij-plugin,代码行数:6,代码来源:LombokConfigIndex.java


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