@Override
	public List<DockingActionIf> getActionList(ActionContext context) {
		Program program = getProgram(context);
		List<String> descriptions = getDescriptions(program);
		List<DockingActionIf> actions = new ArrayList<>();

		int repeatCount = 1;
		for (String string : descriptions) {
			actions.add(new RepeatedAction(string, repeatCount));
			repeatCount++;
		}

		return actions;
	}
Abstract base class for the undo and redo actions. These actions add a listener to the
current context program in order to know when to update their enabled state and description.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/AbstractUndoRedoAction.java