@Override
	public void actionPerformed(ActionContext context) {
		KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
		Window focusedWindow = kfm.getFocusedWindow();

		Tool tool = DockingWindowManager.getActiveInstance().getTool();

		if (focusedWindow instanceof DockingDialog dialog) {
			context = dialog.getDialogComponent().getActionContext(null);
			showActionsDialog(tool, dialog, context);
		}
		else if (focusedWindow instanceof DockingFrame dockingFrame) {
			showActionsDialog(tool, dockingFrame, context);
		}
	}
Action for displaying the {@link ActionChooserDialog}. This action determines the focused 
{@link ComponentProvider} or {@link DialogComponentProvider} and displays the 
{@link ActionChooserDialog} with actions relevant to that focused component.
Ghidra/Framework/Docking/src/main/java/docking/action/ShowActionChooserDialogAction.java