src/sap.ui.fl/src/sap/ui/fl/Utils.js
function (oControl) {
			var oAppComponent;

			// determine UI5 component out of given control
			if (oControl) {
				// always return the app component
				oAppComponent = this.getAppComponentForControl(oControl);

				// check if the component is an application variant and assigned an application descriptor then use this as reference
				if (oAppComponent) {
					var sVariantId = this._getComponentStartUpParameter(oAppComponent, "sap-app-id");
					if (sVariantId) {
						return sVariantId;
					}

					if (oAppComponent.getManifestEntry("sap.ui5") && oAppComponent.getManifestEntry("sap.ui5").appVariantId) {
						return oAppComponent.getManifestEntry("sap.ui5").appVariantId;
					}
				}
			}

			return Utils.getComponentName(oAppComponent);
		}
function (oControl) {
			var oAppComponent;

			// determine UI5 component out of given control
			if (oControl) {
				// always return the app component
				oAppComponent = this.getAppComponentForControl(oControl);

				// check if the component is an application variant and assigned an application descriptor then use this as reference
				if (oAppComponent) {
					var sVariantId = this._getComponentStartUpParameter(oAppComponent, "sap-app-id");
					if (sVariantId) {
						return sVariantId;
					}

					if (oAppComponent.getManifestEntry("sap.ui5") && oAppComponent.getManifestEntry("sap.ui5").appVariantId) {
						return oAppComponent.getManifestEntry("sap.ui5").appVariantId;
					}
				}
			}

			return Utils.getComponentName(oAppComponent);
		}
function ( oControl ) { var oAppComponent ; // determine UI5 component out of given control if ( oControl ) { // always return the app component oAppComponent = this . getAppComponentForControl ( oControl ) ; // check if the component is an application variant and assigned an application descriptor then use this as reference if ( oAppComponent ) { var sVariantId = this . _getComponentStartUpParameter ( oAppComponent , "sap-app-id" ) ; if ( sVariantId ) { return sVariantId ; } if ( oAppComponent . getManifestEntry ( "sap.ui5" ) && oAppComponent . getManifestEntry ( "sap.ui5" ) . appVariantId ) { return oAppComponent . getManifestEntry ( "sap.ui5" ) . appVariantId ; } } } return Utils . getComponentName ( oAppComponent ) ; }
Returns the class name of the component the given control belongs to.

@param {sap.ui.core.Control} oControl - SAPUI5 control

@returns {String} The component class name, ending with ".Component"
@see sap.ui.core.Component.getOwnerIdFor
@public
@function
@name sap.ui.fl.Utils.getComponentClassName
Returns the class name of the component the given control belongs to .