@openui5/sap.ui.rta 1.105.1 → 1.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +20 -17
- package/THIRDPARTY.txt +31 -21
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +652 -653
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +2 -0
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +6 -5
- package/src/sap/ui/rta/command/CompositeCommand.js +7 -5
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +3 -3
- package/src/sap/ui/rta/command/LREPSerializer.js +3 -2
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +26 -7
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +89 -15
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +31 -0
- package/src/sap/ui/rta/messagebundle_ar.properties +16 -11
- package/src/sap/ui/rta/messagebundle_bg.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ca.properties +16 -11
- package/src/sap/ui/rta/messagebundle_cs.properties +16 -11
- package/src/sap/ui/rta/messagebundle_cy.properties +16 -11
- package/src/sap/ui/rta/messagebundle_da.properties +16 -11
- package/src/sap/ui/rta/messagebundle_de.properties +17 -12
- package/src/sap/ui/rta/messagebundle_el.properties +16 -11
- package/src/sap/ui/rta/messagebundle_en.properties +7 -2
- package/src/sap/ui/rta/messagebundle_en_GB.properties +7 -2
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +6 -1
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
- package/src/sap/ui/rta/messagebundle_es.properties +16 -11
- package/src/sap/ui/rta/messagebundle_es_MX.properties +16 -11
- package/src/sap/ui/rta/messagebundle_et.properties +16 -11
- package/src/sap/ui/rta/messagebundle_fi.properties +16 -11
- package/src/sap/ui/rta/messagebundle_fr.properties +16 -11
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +16 -11
- package/src/sap/ui/rta/messagebundle_hi.properties +16 -11
- package/src/sap/ui/rta/messagebundle_hr.properties +16 -11
- package/src/sap/ui/rta/messagebundle_hu.properties +16 -11
- package/src/sap/ui/rta/messagebundle_id.properties +16 -11
- package/src/sap/ui/rta/messagebundle_it.properties +16 -11
- package/src/sap/ui/rta/messagebundle_iw.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ja.properties +16 -11
- package/src/sap/ui/rta/messagebundle_kk.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ko.properties +16 -11
- package/src/sap/ui/rta/messagebundle_lt.properties +16 -11
- package/src/sap/ui/rta/messagebundle_lv.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ms.properties +16 -11
- package/src/sap/ui/rta/messagebundle_nl.properties +16 -11
- package/src/sap/ui/rta/messagebundle_no.properties +16 -11
- package/src/sap/ui/rta/messagebundle_pl.properties +16 -11
- package/src/sap/ui/rta/messagebundle_pt.properties +16 -11
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ro.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ru.properties +16 -11
- package/src/sap/ui/rta/messagebundle_sh.properties +16 -11
- package/src/sap/ui/rta/messagebundle_sk.properties +16 -11
- package/src/sap/ui/rta/messagebundle_sl.properties +16 -11
- package/src/sap/ui/rta/messagebundle_sv.properties +16 -11
- package/src/sap/ui/rta/messagebundle_th.properties +16 -11
- package/src/sap/ui/rta/messagebundle_tr.properties +16 -11
- package/src/sap/ui/rta/messagebundle_uk.properties +16 -11
- package/src/sap/ui/rta/messagebundle_vi.properties +16 -11
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +16 -11
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +16 -11
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +7 -5
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +8 -6
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +9 -4
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +3 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +3 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- package/src/sap/ui/rta/plugin/Rename.js +3 -3
- package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
- package/src/sap/ui/rta/plugin/Resize.js +3 -3
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +2 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +3 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +9 -6
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +9 -9
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +3 -3
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +6 -4
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +189 -0
- package/src/sap/ui/rta/service/index.js +7 -6
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +11 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +9 -1
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +3 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +6 -4
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +125 -0
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptationDialog.fragment.xml +79 -0
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -5
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +97 -41
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/StylesLoader.js +3 -3
- package/src/sap/ui/rta/util/adaptationStarter.js +13 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +50 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +44 -41
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +2 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +69 -43
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +57 -83
- package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/MoveVisualization.js +13 -10
- package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/RenameVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/{categories → commands}/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +37 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +0 -35
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -416,6 +416,8 @@ sap.ui.define([
|
|
|
416
416
|
sErrorMessage = oError.messages.map(function(oError) {
|
|
417
417
|
return oError.text;
|
|
418
418
|
}).join("\n");
|
|
419
|
+
} else if (oError.userMessage) {
|
|
420
|
+
sErrorMessage = oError.userMessage;
|
|
419
421
|
} else if (oError.iamAppId) {
|
|
420
422
|
sErrorMessage = "IAM App Id: " + oError.iamAppId;
|
|
421
423
|
} else {
|
|
@@ -485,7 +485,7 @@ sap.ui.define([
|
|
|
485
485
|
* @extends sap.ui.base.ManagedObject
|
|
486
486
|
*
|
|
487
487
|
* @author SAP SE
|
|
488
|
-
* @version 1.
|
|
488
|
+
* @version 1.107.0
|
|
489
489
|
*
|
|
490
490
|
* @constructor
|
|
491
491
|
* @private
|
|
@@ -523,9 +523,9 @@ sap.ui.define([
|
|
|
523
523
|
|
|
524
524
|
/**
|
|
525
525
|
* Instance-specific method for generating command
|
|
526
|
-
* @param {sap.ui.core.Element|string} vElement - Could be either an element or a
|
|
526
|
+
* @param {sap.ui.core.Element|string} vElement - Could be either an element or a selector for the element for which the command is to be created
|
|
527
527
|
* @param {string} sCommand - Command type
|
|
528
|
-
* @param {object} mSettings - Initial settings for the new command (command specific settings, looks
|
|
528
|
+
* @param {object} mSettings - Initial settings for the new command (command specific settings, looks different for each and every command)
|
|
529
529
|
* @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
|
|
530
530
|
* @param {string} sVariantManagementReference - Variant management reference
|
|
531
531
|
* @returns {Promise} A promise which will return the created command
|
|
@@ -536,9 +536,9 @@ sap.ui.define([
|
|
|
536
536
|
|
|
537
537
|
/**
|
|
538
538
|
* Static method for generating command
|
|
539
|
-
* @param {sap.ui.core.Element|string} vElement - Could be either an element or a
|
|
539
|
+
* @param {sap.ui.core.Element|string} vElement - Could be either an element or a selector for the element for which the command is to be created
|
|
540
540
|
* @param {string} sCommand - Command type
|
|
541
|
-
* @param {object} mSettings - Initial settings for the new command (command specific settings, looks
|
|
541
|
+
* @param {object} mSettings - Initial settings for the new command (command specific settings, looks different for each and every command)
|
|
542
542
|
* @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
|
|
543
543
|
* @param {object} [mFlexSettings] - Property bag
|
|
544
544
|
* @param {string} [mFlexSettings.layer] - The Layer in which RTA should be started. Default: "CUSTOMER"
|
|
@@ -546,6 +546,7 @@ sap.ui.define([
|
|
|
546
546
|
* @param {string} [mFlexSettings.baseId] - Base ID of the app
|
|
547
547
|
* @param {string} [mFlexSettings.projectId] - Project ID
|
|
548
548
|
* @param {string} [mFlexSettings.scenario] - Key representing the current scenario
|
|
549
|
+
* @param {string} [mFlexSettings.generator] - Generator of the change. Will be saved in the change
|
|
549
550
|
* @returns {Promise} A promise which will return the created command
|
|
550
551
|
*/
|
|
551
552
|
CommandFactory.getCommandFor = function (vElement, sCommand, mSettings, oDesignTimeMetadata, mFlexSettings) {
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.107.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -96,10 +96,12 @@ sap.ui.define([
|
|
|
96
96
|
if (!this._sCompositeId) {
|
|
97
97
|
this._sCompositeId = FlUtils.createDefaultFileName("composite");
|
|
98
98
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
var oPreparedChange = oCommand.getPreparedChange && oCommand.getPreparedChange();
|
|
100
|
+
if (oPreparedChange) {
|
|
101
|
+
var oChangeSupportInformation = oPreparedChange.getSupportInformation();
|
|
102
|
+
if (!oChangeSupportInformation.compositeCommand) {
|
|
103
|
+
oChangeSupportInformation.compositeCommand = this._sCompositeId;
|
|
104
|
+
oPreparedChange.setSupportInformation(oChangeSupportInformation);
|
|
103
105
|
}
|
|
104
106
|
} else if (oCommand.setCompositeId) {
|
|
105
107
|
// relevant for app descriptor commands
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @extends sap.ui.rta.command.BaseCommand
|
|
32
32
|
*
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.
|
|
34
|
+
* @version 1.107.0
|
|
35
35
|
*
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
@@ -208,7 +208,7 @@ sap.ui.define([
|
|
|
208
208
|
mChangeSpecificData = Object.assign({}, mChangeSpecificData, mVariantObj);
|
|
209
209
|
}
|
|
210
210
|
mChangeSpecificData.command = sCommand;
|
|
211
|
-
mChangeSpecificData.generator = rtaLibrary.GENERATOR_NAME;
|
|
211
|
+
mChangeSpecificData.generator = mFlexSettings.generator || rtaLibrary.GENERATOR_NAME;
|
|
212
212
|
return ChangesWriteAPI.create({changeSpecificData: mChangeSpecificData, selector: this._validateControlForChange(mFlexSettings)})
|
|
213
213
|
.then(function(oChange) {
|
|
214
214
|
// originalSelector is only present when making a change on/inside a template; the selector does not work with the JS propagation hook (the template has no parent),
|
|
@@ -217,7 +217,7 @@ sap.ui.define([
|
|
|
217
217
|
// ATTENTION! the change gets applied as soon as the parent is available, so there might be possible side effects with lazy loading
|
|
218
218
|
if (mFlexSettings && mFlexSettings.originalSelector) {
|
|
219
219
|
oChange.addDependentControl(mFlexSettings.originalSelector, "originalSelector", {modifier: JsControlTreeModifier, appComponent: this.getAppComponent()});
|
|
220
|
-
oChange.
|
|
220
|
+
oChange.setSelector(Object.assign(oChange.getSelector(), JsControlTreeModifier.getSelector(this.getSelector().id, this.getAppComponent())));
|
|
221
221
|
oChange.setContent(Object.assign({}, oChange.getContent(), mFlexSettings.content));
|
|
222
222
|
}
|
|
223
223
|
return oChange;
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @class
|
|
30
30
|
* @extends sap.ui.base.ManagedObject
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.107.0
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.42
|
|
@@ -176,7 +176,8 @@ sap.ui.define([
|
|
|
176
176
|
draft: !!mPropertyBag.saveAsDraft,
|
|
177
177
|
layer: mPropertyBag.layer,
|
|
178
178
|
removeOtherLayerChanges: !!mPropertyBag.removeOtherLayerChanges,
|
|
179
|
-
version: mPropertyBag.version
|
|
179
|
+
version: mPropertyBag.version,
|
|
180
|
+
condenseAnyLayer: mPropertyBag.condenseAnyLayer
|
|
180
181
|
});
|
|
181
182
|
}.bind(this))
|
|
182
183
|
.then(function() {
|
|
@@ -9,14 +9,18 @@ sap.ui.define([
|
|
|
9
9
|
"sap/ui/fl/Utils",
|
|
10
10
|
"sap/ui/rta/command/Settings",
|
|
11
11
|
"sap/ui/rta/command/CompositeCommand",
|
|
12
|
-
"sap/ui/core/util/reflection/JsControlTreeModifier"
|
|
12
|
+
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
13
|
+
"sap/ui/rta/util/showMessageBox",
|
|
14
|
+
"sap/ui/core/Core"
|
|
13
15
|
], function(
|
|
14
16
|
ManagedObject,
|
|
15
17
|
PersistenceWriteAPI,
|
|
16
18
|
FlUtils,
|
|
17
19
|
Settings,
|
|
18
20
|
CompositeCommand,
|
|
19
|
-
JsControlTreeModifier
|
|
21
|
+
JsControlTreeModifier,
|
|
22
|
+
showMessageBox,
|
|
23
|
+
Core
|
|
20
24
|
) {
|
|
21
25
|
"use strict";
|
|
22
26
|
|
|
@@ -32,12 +36,12 @@ sap.ui.define([
|
|
|
32
36
|
var oSelector = oChange.getSelector && oChange.getSelector();
|
|
33
37
|
var oCommand = new Settings({
|
|
34
38
|
selector: oSelector,
|
|
35
|
-
changeType: oChange.
|
|
39
|
+
changeType: oChange.getChangeType(),
|
|
36
40
|
element: JsControlTreeModifier.bySelector(oSelector, oComponent)
|
|
37
41
|
});
|
|
38
42
|
oCommand._oPreparedChange = oChange;
|
|
39
43
|
// check if change belongs to a composite command
|
|
40
|
-
var sCompositeId = oChange.
|
|
44
|
+
var sCompositeId = oChange.getSupportInformation().compositeCommand;
|
|
41
45
|
if (sCompositeId) {
|
|
42
46
|
if (!mComposite[sCompositeId]) {
|
|
43
47
|
mComposite[sCompositeId] = new CompositeCommand();
|
|
@@ -55,7 +59,7 @@ sap.ui.define([
|
|
|
55
59
|
* @class
|
|
56
60
|
* @extends sap.ui.base.ManagedObject
|
|
57
61
|
* @author SAP SE
|
|
58
|
-
* @version 1.
|
|
62
|
+
* @version 1.107.0
|
|
59
63
|
* @constructor
|
|
60
64
|
* @private
|
|
61
65
|
* @since 1.34
|
|
@@ -74,7 +78,15 @@ sap.ui.define([
|
|
|
74
78
|
}
|
|
75
79
|
},
|
|
76
80
|
events: {
|
|
81
|
+
/**
|
|
82
|
+
* Fired if the Stack changes because of a change execution or if all commands get removed.
|
|
83
|
+
* In case of change execution the modified event will be fired after the commandExecuted event.
|
|
84
|
+
*/
|
|
77
85
|
modified: {},
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Fired after a successful execution of a command (also includes undo).
|
|
89
|
+
*/
|
|
78
90
|
commandExecuted: {
|
|
79
91
|
parameters: {
|
|
80
92
|
command: {type: "object"},
|
|
@@ -126,12 +138,14 @@ sap.ui.define([
|
|
|
126
138
|
Stack.prototype.addCommandExecutionHandler = function(fnHandler) {
|
|
127
139
|
this._aCommandExecutionHandler.push(fnHandler);
|
|
128
140
|
};
|
|
141
|
+
|
|
129
142
|
Stack.prototype.removeCommandExecutionHandler = function(fnHandler) {
|
|
130
143
|
var i = this._aCommandExecutionHandler.indexOf(fnHandler);
|
|
131
144
|
if (i > -1) {
|
|
132
145
|
this._aCommandExecutionHandler.splice(i, 1);
|
|
133
146
|
}
|
|
134
147
|
};
|
|
148
|
+
|
|
135
149
|
Stack.prototype.init = function() {
|
|
136
150
|
this._aCommandExecutionHandler = [];
|
|
137
151
|
this._toBeExecuted = -1;
|
|
@@ -156,6 +170,7 @@ sap.ui.define([
|
|
|
156
170
|
*/
|
|
157
171
|
Stack.prototype.pushExecutedCommand = function(oCommand) {
|
|
158
172
|
this.push(oCommand, true);
|
|
173
|
+
this.fireModified();
|
|
159
174
|
};
|
|
160
175
|
|
|
161
176
|
Stack.prototype.push = function(oCommand, bExecuted) {
|
|
@@ -170,7 +185,6 @@ sap.ui.define([
|
|
|
170
185
|
if (!bExecuted) {
|
|
171
186
|
this._toBeExecuted++;
|
|
172
187
|
}
|
|
173
|
-
this.fireModified();
|
|
174
188
|
};
|
|
175
189
|
|
|
176
190
|
Stack.prototype.top = function() {
|
|
@@ -186,7 +200,6 @@ sap.ui.define([
|
|
|
186
200
|
|
|
187
201
|
Stack.prototype.removeCommand = function(vObject, bSuppressInvalidate) {
|
|
188
202
|
var oRemovedCommand = this.removeAggregation("commands", vObject, bSuppressInvalidate);
|
|
189
|
-
this.fireModified();
|
|
190
203
|
return oRemovedCommand;
|
|
191
204
|
};
|
|
192
205
|
|
|
@@ -226,6 +239,12 @@ sap.ui.define([
|
|
|
226
239
|
oError.index = this._toBeExecuted;
|
|
227
240
|
oError.command = this.removeCommand(this._toBeExecuted); // remove failing command
|
|
228
241
|
this._toBeExecuted--;
|
|
242
|
+
var oRtaResourceBundle = Core.getLibraryResourceBundle("sap.ui.rta");
|
|
243
|
+
showMessageBox(
|
|
244
|
+
oRtaResourceBundle.getText("MSG_GENERIC_ERROR_MESSAGE", oError.message),
|
|
245
|
+
{title: oRtaResourceBundle.getText("HEADER_ERROR")},
|
|
246
|
+
"error"
|
|
247
|
+
);
|
|
229
248
|
return Promise.reject(oError);
|
|
230
249
|
}.bind(this));
|
|
231
250
|
}
|