mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
IJPL-172840 Extend suspension of Usages tree accessibility announcements
UsageState.restore also expands a tree node, and because it's called for every node, it shouldn't generate tree expanded events. (cherry picked from commit 3c3d581e94bab9fe08ff655ac5c656aa21617a2e) IJ-CR-151182 GitOrigin-RevId: cde9f512f810a3e4bb5a470bd7bef3b36540e686
This commit is contained in:
committed by
intellij-monorepo-bot
parent
473efbed32
commit
eaf47ca357
@@ -1149,16 +1149,16 @@ public class UsageViewImpl implements UsageViewEx {
|
|||||||
myTree.expandPath(treePath);
|
myTree.expandPath(treePath);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
myTree.getSelectionModel().clearSelection();
|
||||||
|
for (UsageState usageState : states) {
|
||||||
|
usageState.restore();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if (myTree instanceof Tree jbTree) {
|
if (myTree instanceof Tree jbTree) {
|
||||||
jbTree.resumeExpandCollapseAccessibilityAnnouncements();
|
jbTree.resumeExpandCollapseAccessibilityAnnouncements();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
myTree.getSelectionModel().clearSelection();
|
|
||||||
for (UsageState usageState : states) {
|
|
||||||
usageState.restore();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void expandAll() {
|
public void expandAll() {
|
||||||
|
|||||||
Reference in New Issue
Block a user