@Override
	public void actionPerformed(ListingActionContext context) {
		Function function = functionPlugin.getFunction(context);
		if ((function != null) && (function.hasVarArgs())) {
			Command<Program> command = new SetFunctionVarArgsCommand(function, false);

			PluginTool tool = functionPlugin.getTool();
			Program program = context.getProgram();

			if (!tool.execute(command, program)) {
				tool.setStatusInfo("Unable to delete function varArgs on " + "function: " +
					function.getName());
			}
		}
	}
Method called when the action is invoked.
@param ev details regarding the invocation of this action
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/DeleteVarArgsAction.java