@Override
	public void actionPerformed(ListingActionContext context) {
		ProgramSelection selection = context.getSelection();
		if (!isEnabledForContext(context)) {
			return;
		}
		Program currentProgram = context.getProgram();
		if (currentProgram == null) {
			return;
		}

		CreateMultipleFunctionsCmd cmd =
			new CreateMultipleFunctionsCmd(selection, SourceType.USER_DEFINED);
		funcPlugin.execute(currentProgram, cmd);
	}
Creates a new action with the given name and associated to the given
plugin.
@param name the name for this action.
@param plugin the plugin this action is associated with.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/CreateMultipleFunctionsAction.java