mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-13 06:59:44 +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.getSelectionModel().clearSelection();
|
||||
for (UsageState usageState : states) {
|
||||
usageState.restore();
|
||||
}
|
||||
}
|
||||
finally {
|
||||
if (myTree instanceof Tree jbTree) {
|
||||
jbTree.resumeExpandCollapseAccessibilityAnnouncements();
|
||||
}
|
||||
}
|
||||
myTree.getSelectionModel().clearSelection();
|
||||
for (UsageState usageState : states) {
|
||||
usageState.restore();
|
||||
}
|
||||
}
|
||||
|
||||
public void expandAll() {
|
||||
|
||||
Reference in New Issue
Block a user