mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-195542 Inconsistent and partial results in "Occurrences of" Find tool window tab after opening from "Find in Path"
This commit is contained in:
@@ -295,8 +295,9 @@ class SearchForUsagesRunnable implements Runnable {
|
||||
int usageCount = myUsageCountWithoutDefinition.get();
|
||||
if (usageCount >= 2 || usageCount == 1 && myProcessPresentation.isShowPanelIfOnlyOneUsage()) {
|
||||
usageView = myUsageViewManager.createUsageView(mySearchFor, Usage.EMPTY_ARRAY, myPresentation, mySearcherFactory);
|
||||
usageView.associateProgress(indicator);
|
||||
if (myUsageViewRef.compareAndSet(null, usageView)) {
|
||||
// associate progress only if created successfully, otherwise Dispose will cancel the actual progress, see IDEA-195542
|
||||
usageView.associateProgress(indicator);
|
||||
if (myProcessPresentation.isShowFindOptionsPrompt()) {
|
||||
openView(usageView);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user