Merge remote-tracking branch 'origin/patch'

This commit is contained in:
Ryan Kurtz 2025-07-02 12:55:50 -04:00
commit 5dcd35ca6f
2 changed files with 6 additions and 1 deletions

View file

@ -207,6 +207,7 @@ public class FlatProgramAPI {
AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager(program);
mgr.initializeOptions();
mgr.reAnalyzeAll(null);
analyzeChanges(program);

View file

@ -212,8 +212,12 @@ public class GlobalMenuAndToolBarManager implements DockingWindowListener {
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
Window w = kfm.getFocusedWindow();
if (w instanceof DockingDialog dialog) {
// the provider can be null when the dialog has been closed, but the Java focus transfer
// has not yet completed
DialogComponentProvider provider = dialog.getDialogComponent();
return provider.getActionContext(null);
if (provider != null) {
return provider.getActionContext(null);
}
}
return getComponentProviderContext(focusedWindowNode);