mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-205976: update a focused file before rebuilding a structure view
This commit is contained in:
@@ -122,7 +122,10 @@ public class StructureViewWrapperImpl implements StructureViewWrapper, Disposabl
|
||||
@Override
|
||||
public void hierarchyChanged(HierarchyEvent e) {
|
||||
if (BitUtil.isSet(e.getChangeFlags(), HierarchyEvent.DISPLAYABILITY_CHANGED)) {
|
||||
LOG.debug("displayability changed");
|
||||
boolean visible = myToolWindow.isVisible();
|
||||
LOG.debug("displayability changed: " + visible);
|
||||
if (!visible) return; // do nothing on hide
|
||||
loggedRun("update file", StructureViewWrapperImpl.this::checkUpdate);
|
||||
scheduleRebuild();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user