Files
openide/java/idea-ui
Nikolay Chashnikov c603cbb13d [project structure dialog] properly handle selection changes after reopening the dialog (IJPL-161905)
After e7b38952621668, AutoScrollToSourceHandler remembers the modality state which it uses for processing events on the first invocation. However, it's used in BaseStructureConfigurable instances, which are reused each time the Project Structure dialog is opened (see IJPL-21800). And then the dialog is opened for the second time, it stops processing auto-scroll events. It's not that simple to fix IJPL-21800. So as a temporary solution, an internal 'resetAlarm' function was added and called when the dialog is closed to reset the instance and ensure that it'll be recreated with the proper modality state the next time the dialog is opened.

GitOrigin-RevId: 68af8a98a7d73a50d8cbc7889e4ab9a229d3ad54
2024-09-09 13:13:34 +00:00
..