show hidden usages after "show in usage view" action

This commit is contained in:
Alexey Kudravtsev
2016-04-19 13:50:49 +03:00
parent 7c6b88096b
commit 7159040d5c
2 changed files with 5 additions and 2 deletions
@@ -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);