src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js
function (tempTreeModelWithAdditionalRuleSets, oTreeModelWithSelection) {

			Object.keys(tempTreeModelWithAdditionalRuleSets).forEach(function(iKey) {
				Object.keys(oTreeModelWithSelection).forEach(function(iKey) {
					if (tempTreeModelWithAdditionalRuleSets[iKey].id === oTreeModelWithSelection[iKey].id) {
						tempTreeModelWithAdditionalRuleSets[iKey] =  oTreeModelWithSelection[iKey];
					}
				});
			});

			return tempTreeModelWithAdditionalRuleSets;
		}
function (tempTreeModelWithAdditionalRuleSets, oTreeModelWithSelection) {

			Object.keys(tempTreeModelWithAdditionalRuleSets).forEach(function(iKey) {
				Object.keys(oTreeModelWithSelection).forEach(function(iKey) {
					if (tempTreeModelWithAdditionalRuleSets[iKey].id === oTreeModelWithSelection[iKey].id) {
						tempTreeModelWithAdditionalRuleSets[iKey] =  oTreeModelWithSelection[iKey];
					}
				});
			});

			return tempTreeModelWithAdditionalRuleSets;
		}
function ( tempTreeModelWithAdditionalRuleSets , oTreeModelWithSelection ) { Object . keys ( tempTreeModelWithAdditionalRuleSets ) . forEach ( function ( iKey ) { Object . keys ( oTreeModelWithSelection ) . forEach ( function ( iKey ) { if ( tempTreeModelWithAdditionalRuleSets [ iKey ] . id === oTreeModelWithSelection [ iKey ] . id ) { tempTreeModelWithAdditionalRuleSets [ iKey ] = oTreeModelWithSelection [ iKey ] ; } } ) ; } ) ; return tempTreeModelWithAdditionalRuleSets ; }
Applies selection to the tree model after reinitializing model with additional rulesets.
@param {Object} tempTreeModelWithAdditionalRuleSets tree model with no selection
@param {Object} oTreeModelWithSelection tree model with selection before loading additional rulesets
@returns {Object} oTreeModelWhitAdditionalRuleSets updated selection model
Applies selection to the tree model after reinitializing model with additional rulesets .