Java Code Examples for com.intellij.psi.SingleRootFileViewProvider#isTooLargeForContentLoading()
The following examples show how to use
com.intellij.psi.SingleRootFileViewProvider#isTooLargeForContentLoading() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CsvFileEditorProvider.java From intellij-csv-validator with Apache License 2.0 | 4 votes |
@Override public boolean accept(@NotNull Project project, @NotNull VirtualFile file) { return CsvHelper.isCsvFile(project, file) && !SingleRootFileViewProvider.isTooLargeForContentLoading(file); }
Example 2
Source File: TextEditorProvider.java From consulo with Apache License 2.0 | 4 votes |
@Override public boolean accept(@Nonnull Project project, @Nonnull VirtualFile file) { return isTextFile(file) && !SingleRootFileViewProvider.isTooLargeForContentLoading(file); }
Example 3
Source File: LargeFileEditorProvider.java From consulo with Apache License 2.0 | 4 votes |
@Override public boolean accept(@Nonnull Project project, @Nonnull VirtualFile file) { return TextEditorProvider.isTextFile(file) && SingleRootFileViewProvider.isTooLargeForContentLoading(file); }
Example 4
Source File: DesktopTextEditorProvider.java From consulo with Apache License 2.0 | 4 votes |
@Override public boolean accept(@Nonnull Project project, @Nonnull VirtualFile file) { return isTextFile(file) && !SingleRootFileViewProvider.isTooLargeForContentLoading(file); }
Example 5
Source File: FileBasedIndexImpl.java From consulo with Apache License 2.0 | 4 votes |
private boolean isTooLarge(@Nonnull VirtualFile file) { if (SingleRootFileViewProvider.isTooLargeForIntelligence(file)) { return !myNoLimitCheckTypes.contains(file.getFileType()) || SingleRootFileViewProvider.isTooLargeForContentLoading(file); } return false; }
Example 6
Source File: FileBasedIndexImpl.java From consulo with Apache License 2.0 | 4 votes |
private boolean isTooLarge(@Nonnull VirtualFile file, long contentSize) { if (SingleRootFileViewProvider.isTooLargeForIntelligence(file, contentSize)) { return !myNoLimitCheckTypes.contains(file.getFileType()) || SingleRootFileViewProvider.isTooLargeForContentLoading(file, contentSize); } return false; }