mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
limit the length of progress text (IDEA-75379)
This commit is contained in:
@@ -611,7 +611,18 @@ public class PsiSearchHelperImpl implements PsiSearchHelper {
|
||||
}
|
||||
|
||||
if (progress != null) {
|
||||
progress.setText(PsiBundle.message("psi.search.for.word.progress", StringUtil.join(allWords, ", ")));
|
||||
final StringBuilder result = new StringBuilder();
|
||||
for (String string : allWords) {
|
||||
if (string != null && string.length() != 0) {
|
||||
if (result.length() > 50) {
|
||||
result.append("...");
|
||||
break;
|
||||
}
|
||||
if (result.length() != 0) result.append(", ");
|
||||
result.append(string);
|
||||
}
|
||||
}
|
||||
progress.setText(PsiBundle.message("psi.search.for.word.progress", result.toString()));
|
||||
}
|
||||
|
||||
return processPsiFileRoots(new ArrayList<VirtualFile>(candidateFiles.keySet()), new Processor<PsiElement>() {
|
||||
|
||||
Reference in New Issue
Block a user