mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
read-action for getFilesForFastWordSearch
This commit is contained in:
@@ -121,7 +121,12 @@ class FindInProjectTask {
|
||||
try {
|
||||
myProgress.setIndeterminate(true);
|
||||
myProgress.setText("Scanning indexed files...");
|
||||
final Set<PsiFile> filesForFastWordSearch = getFilesForFastWordSearch();
|
||||
final Set<PsiFile> filesForFastWordSearch = ApplicationManager.getApplication().runReadAction(new Computable<Set<PsiFile>>() {
|
||||
@Override
|
||||
public Set<PsiFile> compute() {
|
||||
return getFilesForFastWordSearch();
|
||||
}
|
||||
});
|
||||
myProgress.setIndeterminate(false);
|
||||
|
||||
searchInFiles(filesForFastWordSearch, processPresentation, consumer);
|
||||
|
||||
Reference in New Issue
Block a user