public void addAction(DockingActionIf action) {
		checkForSwingThread();
		resetMenus();
		MenuData menuData = usePopupPath ? action.getPopupMenuData() : action.getMenuBarData();
		if (isSubMenu(menuData)) {
			MenuManager mgr = getSubMenu(menuData);
			mgr.addAction(action);
		}
		else {
			managedMenuItems.add(new MenuItemManager(menuHandler, action, usePopupPath));
		}
	}
Adds an action to this menu. Can create subMenus depending on the menuPath of the action
@param action the action to be added
Ghidra/Framework/Docking/src/main/java/docking/menu/MenuManager.java