private void maybeDoAction() {
		int index = actionList.getSelectedIndex();
		if (index < 0) {
			return;
		}

		close();

		DockingActionIf action = actions.get(index);

		// Toggle actions do not toggle its state directly therefor we have to do it for 
		// them before we execute the action.
		if (action instanceof ToggleDockingActionIf) {
			ToggleDockingActionIf toggleAction = (ToggleDockingActionIf) action;
			toggleAction.setSelected(!toggleAction.isSelected());
		}

		action.actionPerformed(context);
	}
Constructor
@param keystrokeName keystroke name
@param actions list of actions
@param context the context
Ghidra/Framework/Docking/src/main/java/docking/MultiActionDialog.java