void addAction(DockingActionIf action) {
		if (!SwingUtilities.isEventDispatchThread()) {
			throw new AssertException("Actions must be added from Swing thread");
		}
		if (action.getMenuBarData() != null) {
			menuManager.addAction(action);
		}
		if (action.getToolBarData() != null) {
			toolBarManager.addAction(action);
		}
		updateToolBar();
	}
Adds a new action to be added to the toolbar and/or drop-down menu.
@param action the action to be added.
Ghidra/Framework/Docking/src/main/java/docking/DockableToolBarManager.java