@Override
	public void actionPerformed(ListingActionContext context) {
		Function function = funcPlugin.getFunction(context);
		if (function == null) {
			return;
		}
		Address entry = function.getEntryPoint();
		funcPlugin.execute(context.getProgram(), new CreateFunctionDefinitionCmd(entry,
			funcPlugin.getTool()));
	}
Method called when the action is invoked.
@param ActionEvent details regarding the invocation of this action
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/CreateFunctionDefinitionAction.java