mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection tool window: sync right panel on update action finish fixed
This commit is contained in:
@@ -40,8 +40,9 @@ public class InspectionTreeState {
|
||||
public void restoreExpansionAndSelection(InspectionTree tree, InspectionTreeNode reloadedNode) {
|
||||
restoreExpansionStatus((InspectionTreeNode)tree.getModel().getRoot(), tree);
|
||||
if (mySelectionPath != null) {
|
||||
if (reloadedNode == null || needRestore(reloadedNode))
|
||||
mySelectionPath.restore(tree);
|
||||
if (reloadedNode == null || needRestore(reloadedNode)) {
|
||||
mySelectionPath.restore(tree);
|
||||
}
|
||||
} else {
|
||||
TreeUtil.selectFirstNode(tree);
|
||||
}
|
||||
|
||||
+1
-1
@@ -198,7 +198,7 @@ public class QuickFixPreviewPanelFactory {
|
||||
@Override
|
||||
public void treeLoaded() {
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
if (myView.isValid()) {
|
||||
if (!myView.isDisposed()) {
|
||||
myView.syncRightPanel();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user