private void updateActions() {

		//
		// The focused window's actions must be notified after all other windows in order to
		// prevent incorrect context updates.   We will first update all non-focused windows,
		// then the focused window and then finally tell the Docking Window Manager to update.
		//
		WindowNode focusedWindowNode = getFocusedWindowNode();
		Set<DockingActionIf> focusedWindowActions = getWindowActions(focusedWindowNode);

		Map<Class<? extends ActionContext>, ActionContext> defaultContextMap =
			windowManager.getDefaultActionContextMap();

		for (WindowNode windowNode : windowToActionManagerMap.keySet()) {
			if (windowNode == focusedWindowNode) {
				continue; // the focused window will be called after this loop later
			}

			WindowActionManager actionManager = windowToActionManagerMap.get(windowNode);
			ActionContext localContext = getContext(windowNode);
			actionManager.contextChanged(defaultContextMap, localContext, focusedWindowActions);
		}

		// now update the focused window's actions
		WindowActionManager actionManager = windowToActionManagerMap.get(focusedWindowNode);
		ActionContext focusedContext = getContext(focusedWindowNode);
		if (actionManager != null) {
			actionManager.contextChanged(defaultContextMap, focusedContext, Collections.emptySet());
		}

		// update the docking window manager ; no focused context when no window is focused
		if (focusedContext != null) {
			windowManager.doContextChanged(focusedContext);
		}
	}
Class to manage all the global actions that show up on the main tool menubar or toolbar
Ghidra/Framework/Docking/src/main/java/docking/GlobalMenuAndToolBarManager.java