本文整理汇总了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);
}
};
}
示例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());
}
};
}
示例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);
}
};
}
示例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;
}
};
}
示例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);
}
};
}
示例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);
}
};
}
示例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();
}
};
}
示例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);
}
};
}
示例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);
}
};
}
示例10: getInputFilter
import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
return x -> x.getName().equals("MethodArgumentDroppedMatcher.php");
}
示例11: getInputFilter
import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
return LayoutIndex::isLayoutFile;
}
示例12: getInputFilter
import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
return (virtualFile) -> virtualFile.getFileType() == YAMLFileType.YML;
}
示例13: getInputFilter
import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
return myInputFilter;
}
示例14: getInputFilter
import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter()
{
return new DefaultFileTypeSpecificInputFilter(Unity3dMetaFileType.INSTANCE);
}
示例15: getInputFilter
import com.intellij.util.indexing.FileBasedIndex; //导入方法依赖的package包/类
@NotNull
@Override
public FileBasedIndex.InputFilter getInputFilter() {
return new DefaultFileTypeSpecificInputFilter(LombokConfigFileType.INSTANCE);
}