src/sap.ui.rta/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js
function(oOverlay) {
			var oModel = oOverlay.getElement().getModel();
			if (oModel){
				var oMetaModel = oModel.getMetaModel();
				if (oMetaModel && oMetaModel.loaded){
					oMetaModel.loaded().then(function(){
						this.evaluateEditable([oOverlay], {onRegistration: true});
					}.bind(this));
				}
			}
			Plugin.prototype.registerElementOverlay.apply(this, arguments);
		}
function(oOverlay) {
			var oModel = oOverlay.getElement().getModel();
			if (oModel){
				var oMetaModel = oModel.getMetaModel();
				if (oMetaModel && oMetaModel.loaded){
					oMetaModel.loaded().then(function(){
						this.evaluateEditable([oOverlay], {onRegistration: true});
					}.bind(this));
				}
			}
			Plugin.prototype.registerElementOverlay.apply(this, arguments);
		}
function ( oOverlay ) { var oModel = oOverlay . getElement ( ) . getModel ( ) ; if ( oModel ) { var oMetaModel = oModel . getMetaModel ( ) ; if ( oMetaModel && oMetaModel . loaded ) { oMetaModel . loaded ( ) . then ( function ( ) { this . evaluateEditable ( [ oOverlay ] , { onRegistration : true } ) ; } . bind ( this ) ) ; } } Plugin . prototype . registerElementOverlay . apply ( this , arguments ) ; }
Register an overlay
If the MetaModel was not loaded yet when evaluating addODataProperty, the
plugin returns editable = false. Therefore we must make an extra check after
the MetaModel is loaded.
@param  {sap.ui.dt.Overlay} oOverlay overlay object
@override
Register an overlay If the MetaModel was not loaded yet when evaluating addODataProperty the plugin returns editable = false . Therefore we must make an extra check after the MetaModel is loaded .