src/sap.ui.support/src/sap/ui/support/supportRules/ui/models/PresetsUtils.js
function (aSelectedRulesPlain) {
			var oPreset = this.model.getProperty("/selectionPresetsCurrent");

			oPreset.selections = aSelectedRulesPlain;

			if (!(oPreset.isModified || oPreset.isMySelection)) {
				oPreset.isModified = true;
				oPreset.title = oPreset.title + " *";
			}

			this.model.setProperty("/selectionPresetsCurrent", oPreset);

			if (PresetsUtils.isPersistingAllowed()) {
				PresetsUtils.persistSelectionPresets();
			}
		}
function (aSelectedRulesPlain) {
			var oPreset = this.model.getProperty("/selectionPresetsCurrent");

			oPreset.selections = aSelectedRulesPlain;

			if (!(oPreset.isModified || oPreset.isMySelection)) {
				oPreset.isModified = true;
				oPreset.title = oPreset.title + " *";
			}

			this.model.setProperty("/selectionPresetsCurrent", oPreset);

			if (PresetsUtils.isPersistingAllowed()) {
				PresetsUtils.persistSelectionPresets();
			}
		}
function ( aSelectedRulesPlain ) { var oPreset = this . model . getProperty ( "/selectionPresetsCurrent" ) ; oPreset . selections = aSelectedRulesPlain ; if ( ! ( oPreset . isModified || oPreset . isMySelection ) ) { oPreset . isModified = true ; oPreset . title = oPreset . title + " *" ; } this . model . setProperty ( "/selectionPresetsCurrent" , oPreset ) ; if ( PresetsUtils . isPersistingAllowed ( ) ) { PresetsUtils . persistSelectionPresets ( ) ; } }
Synchronizes the current rules selection with the current selection preset
@param {Array} aSelectedRulesPlain The plain list of selected rules (same format as in the presets json file)
Synchronizes the current rules selection with the current selection preset