@Override
	public void actionPerformed(ListingActionContext context) {
		Function function = funcPlugin.getFunction(context);
		Variable var = getVariable(function, context.getLocation());
		if (var == null) {
			return;
		}
		VariableCommentDialog dialog = funcPlugin.getVariableCommentDialog();
		dialog.showDialog(function.getProgram(), var);
	}
Creates a new action with the given name and associated to the given
plugin.
@param plugin the plugin this action is associated with.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/VariableCommentAction.java