@Override
    protected boolean isEnabledForContext(ListingActionContext context) {
    	if (context.hasSelection() || context.getAddress() == null) {
    		return false;
    	}
        return locationEnabledClass.isAssignableFrom(context.getLocation().getClass());
    }
Creates a new action with the given name and associated to the given
plugin.
@param name the name for this action.
@param plugin the plugin this action is associated with.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/function/ClearFunctionAction.java