@Override
	public void actionPerformed(ActionContext context) {

		FunctionAssociationContext providerContext = (FunctionAssociationContext) context;
		Function sourceFunction = providerContext.getSelectedSourceFunction();
		Function destinationFunction = providerContext.getSelectionDestinationFunction();

		final CreateAndAcceptApplyManualMatchTask createTask =
			new CreateAndAcceptApplyManualMatchTask(controller, sourceFunction,
				destinationFunction, false);
		createTask.addTaskListener(new TaskListener() {
			@Override
			public void taskCompleted(Task task) {
				controller.setSelectedMatch(createTask.getNewMatch());
			}

			@Override
			public void taskCancelled(Task task) {
				// don't care; nothing to do
			}
		});

		controller.runVTTask(createTask);
	}
Creates a manual match action that also does an accept of that match.
@param controller the controller for the version tracking session.
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/actions/CreateManualMatchAndAcceptAction.java