src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/SelectionUtils.js
function (aSelectedRules) {
			var oTreeViewModelRules = this.model.getProperty("/treeModel");

			// deselect all
			Object.keys(oTreeViewModelRules).forEach(function(iKey) {
				oTreeViewModelRules[iKey].nodes.forEach(function(oRule) {
					oRule.selected = false;
				});
			});

			// select those from aSelectedRules
			aSelectedRules.forEach(function (oRuleDescriptor) {
				Object.keys(oTreeViewModelRules).forEach(function(iKey) {
					oTreeViewModelRules[iKey].nodes.forEach(function(oRule) {
						if (oRule.id === oRuleDescriptor.ruleId) {
							oRule.selected = true;
						}
					});
				});
			});

			// syncs the parent and child selected/deselected state
			this.treeTable.syncParentNoteWithChildrenNotes(oTreeViewModelRules);

			// apply selection to ui
			this.treeTable.updateSelectionFromModel();

			// update the count in ui
			this.getSelectedRules();

			if (storage.readPersistenceCookie(constants.COOKIE_NAME)) {
				this.persistSelection();
			}
		}
function (aSelectedRules) {
			var oTreeViewModelRules = this.model.getProperty("/treeModel");

			// deselect all
			Object.keys(oTreeViewModelRules).forEach(function(iKey) {
				oTreeViewModelRules[iKey].nodes.forEach(function(oRule) {
					oRule.selected = false;
				});
			});

			// select those from aSelectedRules
			aSelectedRules.forEach(function (oRuleDescriptor) {
				Object.keys(oTreeViewModelRules).forEach(function(iKey) {
					oTreeViewModelRules[iKey].nodes.forEach(function(oRule) {
						if (oRule.id === oRuleDescriptor.ruleId) {
							oRule.selected = true;
						}
					});
				});
			});

			// syncs the parent and child selected/deselected state
			this.treeTable.syncParentNoteWithChildrenNotes(oTreeViewModelRules);

			// apply selection to ui
			this.treeTable.updateSelectionFromModel();

			// update the count in ui
			this.getSelectedRules();

			if (storage.readPersistenceCookie(constants.COOKIE_NAME)) {
				this.persistSelection();
			}
		}
function ( aSelectedRules ) { var oTreeViewModelRules = this . model . getProperty ( "/treeModel" ) ; // deselect all Object . keys ( oTreeViewModelRules ) . forEach ( function ( iKey ) { oTreeViewModelRules [ iKey ] . nodes . forEach ( function ( oRule ) { oRule . selected = false ; } ) ; } ) ; // select those from aSelectedRules aSelectedRules . forEach ( function ( oRuleDescriptor ) { Object . keys ( oTreeViewModelRules ) . forEach ( function ( iKey ) { oTreeViewModelRules [ iKey ] . nodes . forEach ( function ( oRule ) { if ( oRule . id === oRuleDescriptor . ruleId ) { oRule . selected = true ; } } ) ; } ) ; } ) ; // syncs the parent and child selected/deselected state this . treeTable . syncParentNoteWithChildrenNotes ( oTreeViewModelRules ) ; // apply selection to ui this . treeTable . updateSelectionFromModel ( ) ; // update the count in ui this . getSelectedRules ( ) ; if ( storage . readPersistenceCookie ( constants . COOKIE_NAME ) ) { this . persistSelection ( ) ; } }
Sets the selected rules in the same format in which they are imported

@param {Array} aSelectedRules The selected rules - same as the result of getSelectedRulesPlain
Sets the selected rules in the same format in which they are imported