function (aElementOverlays) {
			var bOverlayIsSibling = true;
			var sPluginId = "CTX_ADD_ELEMENTS_AS_SIBLING";
			var iRank = 20;
			var sIcon = "sap-icon://add";
			var aMenuItems = [];
			for (var i = 0; i < 2; i++){
				if (this.isAvailable(bOverlayIsSibling, aElementOverlays)){
					var sMenuItemText = this.getContextMenuTitle.bind(this, bOverlayIsSibling);

					aMenuItems.push({
						id: sPluginId,
						text: sMenuItemText,
						handler: function (bOverlayIsSibling, aElementOverlays) { // eslint-disable-line no-loop-func
							// showAvailableElements has optional parameters, so currying is not possible here
							return this.showAvailableElements(bOverlayIsSibling, aElementOverlays);
						}.bind(this, bOverlayIsSibling),
						enabled: this.isEnabled.bind(this, bOverlayIsSibling),
						rank: iRank,
						icon: sIcon,
						group: "Add"
					});
				}

				bOverlayIsSibling = false;
				sPluginId = "CTX_ADD_ELEMENTS_AS_CHILD";
				iRank = 30;
			}
			return aMenuItems;
		}
function (aElementOverlays) {
			var bOverlayIsSibling = true;
			var sPluginId = "CTX_ADD_ELEMENTS_AS_SIBLING";
			var iRank = 20;
			var sIcon = "sap-icon://add";
			var aMenuItems = [];
			for (var i = 0; i < 2; i++){
				if (this.isAvailable(bOverlayIsSibling, aElementOverlays)){
					var sMenuItemText = this.getContextMenuTitle.bind(this, bOverlayIsSibling);

					aMenuItems.push({
						id: sPluginId,
						text: sMenuItemText,
						handler: function (bOverlayIsSibling, aElementOverlays) { // eslint-disable-line no-loop-func
							// showAvailableElements has optional parameters, so currying is not possible here
							return this.showAvailableElements(bOverlayIsSibling, aElementOverlays);
						}.bind(this, bOverlayIsSibling),
						enabled: this.isEnabled.bind(this, bOverlayIsSibling),
						rank: iRank,
						icon: sIcon,
						group: "Add"
					});
				}

				bOverlayIsSibling = false;
				sPluginId = "CTX_ADD_ELEMENTS_AS_CHILD";
				iRank = 30;
			}
			return aMenuItems;
		}
function ( aElementOverlays ) { var bOverlayIsSibling = true ; var sPluginId = "CTX_ADD_ELEMENTS_AS_SIBLING" ; var iRank = 20 ; var sIcon = "sap-icon://add" ; var aMenuItems = [ ] ; for ( var i = 0 ; i < 2 ; i ++ ) { if ( this . isAvailable ( bOverlayIsSibling , aElementOverlays ) ) { var sMenuItemText = this . getContextMenuTitle . bind ( this , bOverlayIsSibling ) ; aMenuItems . push ( { id : sPluginId , text : sMenuItemText , handler : function ( bOverlayIsSibling , aElementOverlays ) { // eslint-disable-line no-loop-func // showAvailableElements has optional parameters, so currying is not possible here return this . showAvailableElements ( bOverlayIsSibling , aElementOverlays ) ; } . bind ( this , bOverlayIsSibling ) , enabled : this . isEnabled . bind ( this , bOverlayIsSibling ) , rank : iRank , icon : sIcon , group : "Add" } ) ; } bOverlayIsSibling = false ; sPluginId = "CTX_ADD_ELEMENTS_AS_CHILD" ; iRank = 30 ; } return aMenuItems ; }
Retrieve the context menu item for the actions.
Two items are returned here: one for when the overlay is sibling and one for when it is child.
@param  {sap.ui.dt.ElementOverlay} oOverlay Overlay for which the context menu was opened
@return {object[]} Returns array containing the items with required data
Retrieve the context menu item for the actions . Two items are returned here : one for when the overlay is sibling and one for when it is child .
Show the available elements