mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
show hidden usages after "show in usage view" action
This commit is contained in:
@@ -64,6 +64,7 @@ import com.intellij.usageView.UsageInfo;
|
||||
import com.intellij.usages.*;
|
||||
import com.intellij.usages.impl.UsageViewImpl;
|
||||
import com.intellij.util.containers.ContainerUtil;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -921,6 +922,7 @@ public class FindUtil {
|
||||
}
|
||||
});
|
||||
}
|
||||
UIUtil.invokeLaterIfNeeded(((UsageViewImpl)view)::expandAll);
|
||||
}
|
||||
});
|
||||
return view;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -779,7 +779,8 @@ public class UsageViewImpl implements UsageView, UsageModelTracker.UsageModelTra
|
||||
}
|
||||
}
|
||||
|
||||
private void expandAll() {
|
||||
public void expandAll() {
|
||||
ApplicationManager.getApplication().assertIsDispatchThread();
|
||||
expandingAll = true;
|
||||
try {
|
||||
TreeUtil.expandAll(myTree);
|
||||
|
||||
Reference in New Issue
Block a user