@Override
	protected boolean isEnabledForContext(ListingActionContext context) {

		Address address = context.getAddress();
		if (context.hasSelection() || address == null) {
			return false;
		}

		if (address.isExternalAddress()) {
			return false;
		}

		Address funcAddress = getFunctionAddress(context.getLocation());
		if (funcAddress == null) {
			return false;
		}

		return !funcAddress.isExternalAddress();
	}
Overridden to only allow this menu option when clicking in a function.
Note that we do not allow external functions to have tags.

@param context the listing context
@return true if enabled
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/tags/EditFunctionTagsAction.java