本文整理汇总了Java中com.intellij.psi.SingleRootFileViewProvider.isTooLargeForContentLoading方法的典型用法代码示例。如果您正苦于以下问题:Java SingleRootFileViewProvider.isTooLargeForContentLoading方法的具体用法?Java SingleRootFileViewProvider.isTooLargeForContentLoading怎么用?Java SingleRootFileViewProvider.isTooLargeForContentLoading使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.psi.SingleRootFileViewProvider
的用法示例。
在下文中一共展示了SingleRootFileViewProvider.isTooLargeForContentLoading方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isDetectable
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
private static boolean isDetectable(@NotNull final VirtualFile file) {
if (file.isDirectory() || !file.isValid() || file.is(VFileProperty.SPECIAL) || file.getLength() == 0) {
// for empty file there is still hope its type will change
return false;
}
return file.getFileSystem() instanceof FileSystemInterface && !SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例2: accept
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean accept(@NotNull Project project, @NotNull VirtualFile file) {
if (file.isDirectory() || !file.isValid()) {
return false;
}
if (SingleRootFileViewProvider.isTooLargeForContentLoading(file)) {
return false;
}
final FileType ft = file.getFileType();
return !ft.isBinary() || BinaryFileTypeDecompilers.INSTANCE.forFileType(ft) != null;
}
示例3: isDetectable
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
private static boolean isDetectable(@Nonnull final VirtualFile file) {
if (file.isDirectory() || !file.isValid() || file.is(VFileProperty.SPECIAL) || file.getLength() == 0) {
// for empty file there is still hope its type will change
return false;
}
return file.getFileSystem() instanceof FileSystemInterface && !SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例4: accept
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean accept(@NotNull Project project, @NotNull VirtualFile file) {
return isTextFile(file) && !SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例5: accept
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean accept(@NotNull Project project, @NotNull VirtualFile file) {
return TextEditorProvider.isTextFile(file) && SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例6: 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;
}
示例7: accept
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
public boolean accept(@NotNull Project project, @NotNull VirtualFile file) {
if (file.isDirectory() || !file.isValid()) {
return false;
}
return SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例8: accept
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean accept(@Nonnull Project project, @Nonnull VirtualFile file) {
return isTextFile(file) && !SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例9: accept
import com.intellij.psi.SingleRootFileViewProvider; //导入方法依赖的package包/类
@Override
public boolean accept(@Nonnull Project project, @Nonnull VirtualFile file) {
return TextEditorProvider.isTextFile(file) && SingleRootFileViewProvider.isTooLargeForContentLoading(file);
}
示例10: 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;
}