mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ensure root is expanded when usages are shown (IDEA-166853)
This commit is contained in:
@@ -425,7 +425,6 @@ public abstract class BaseRefactoringProcessor implements Runnable {
|
||||
String canNotMakeString = RefactoringBundle.message("usageView.need.reRun");
|
||||
|
||||
addDoRefactoringAction(usageView, refactoringRunnable, canNotMakeString);
|
||||
((UsageViewImpl)usageView).expandRoot();
|
||||
}
|
||||
|
||||
private void addDoRefactoringAction(@NotNull UsageView usageView, @NotNull Runnable refactoringRunnable, @NotNull String canNotMakeString) {
|
||||
|
||||
@@ -81,6 +81,7 @@ public class UsageViewManagerImpl extends UsageViewManager {
|
||||
UsageView usageView = createUsageView(searchedFor, foundUsages, presentation, factory);
|
||||
addContent((UsageViewImpl)usageView, presentation);
|
||||
showToolWindow(true);
|
||||
UIUtil.invokeLaterIfNeeded(((UsageViewImpl)usageView)::expandRoot);
|
||||
return usageView;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user