mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
expand usages: check for disposed (IDEA-CR-17595)
This commit is contained in:
@@ -81,7 +81,11 @@ public class UsageViewManagerImpl extends UsageViewManager {
|
||||
UsageView usageView = createUsageView(searchedFor, foundUsages, presentation, factory);
|
||||
addContent((UsageViewImpl)usageView, presentation);
|
||||
showToolWindow(true);
|
||||
UIUtil.invokeLaterIfNeeded(((UsageViewImpl)usageView)::expandRoot);
|
||||
UIUtil.invokeLaterIfNeeded(() -> {
|
||||
if (!((UsageViewImpl)usageView).isDisposed()) {
|
||||
((UsageViewImpl)usageView).expandRoot();
|
||||
}
|
||||
});
|
||||
return usageView;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user