@eclipse-glsp/server 1.1.0-next.9fd0925.53 → 1.1.0-next.abdebbd.65
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/lib/browser/launch/worker-server-launcher.js +26 -3
- package/lib/browser/launch/worker-server-launcher.js.map +1 -1
- package/lib/common/actions/action-dispatcher.d.ts +2 -1
- package/lib/common/actions/action-dispatcher.d.ts.map +1 -1
- package/lib/common/actions/action-dispatcher.js +9 -7
- package/lib/common/actions/action-dispatcher.js.map +1 -1
- package/lib/common/actions/action-handler-registry.js +4 -4
- package/lib/common/actions/action-handler-registry.js.map +1 -1
- package/lib/common/actions/client-action-handler.d.ts +17 -8
- package/lib/common/actions/client-action-handler.d.ts.map +1 -1
- package/lib/common/actions/client-action-handler.js +32 -22
- package/lib/common/actions/client-action-handler.js.map +1 -1
- package/lib/common/actions/global-action-provider.d.ts +6 -21
- package/lib/common/actions/global-action-provider.d.ts.map +1 -1
- package/lib/common/actions/global-action-provider.js +17 -22
- package/lib/common/actions/global-action-provider.js.map +1 -1
- package/lib/common/command/command-stack.js +2 -2
- package/lib/common/command/command-stack.js.map +1 -1
- package/lib/common/command/command.js +1 -1
- package/lib/common/command/command.js.map +1 -1
- package/lib/common/command/recording-command.d.ts +1 -1
- package/lib/common/command/recording-command.d.ts.map +1 -1
- package/lib/common/command/recording-command.js +26 -3
- package/lib/common/command/recording-command.js.map +1 -1
- package/lib/common/command/undo-redo-action-handler.js +2 -2
- package/lib/common/command/undo-redo-action-handler.js.map +1 -1
- package/lib/common/di/binding-target.d.ts.map +1 -1
- package/lib/common/di/binding-target.js +3 -2
- package/lib/common/di/binding-target.js.map +1 -1
- package/lib/common/di/client-session-module.d.ts +9 -1
- package/lib/common/di/client-session-module.d.ts.map +1 -1
- package/lib/common/di/client-session-module.js +9 -9
- package/lib/common/di/client-session-module.js.map +1 -1
- package/lib/common/di/diagram-module.d.ts +20 -1
- package/lib/common/di/diagram-module.d.ts.map +1 -1
- package/lib/common/di/diagram-module.js +10 -48
- package/lib/common/di/diagram-module.js.map +1 -1
- package/lib/common/di/glsp-module.js +2 -2
- package/lib/common/di/glsp-module.js.map +1 -1
- package/lib/common/di/server-module.d.ts +0 -1
- package/lib/common/di/server-module.d.ts.map +1 -1
- package/lib/common/di/server-module.js +0 -1
- package/lib/common/di/server-module.js.map +1 -1
- package/lib/common/diagram/diagram-configuration.js +1 -1
- package/lib/common/diagram/diagram-configuration.js.map +1 -1
- package/lib/common/diagram/request-type-hints-action-handler.js +2 -2
- package/lib/common/diagram/request-type-hints-action-handler.js.map +1 -1
- package/lib/common/features/clipboard/request-clipboard-data-action-handler.js +2 -2
- package/lib/common/features/clipboard/request-clipboard-data-action-handler.js.map +1 -1
- package/lib/common/features/contextactions/command-palette-action-provider.js +2 -2
- package/lib/common/features/contextactions/command-palette-action-provider.js.map +1 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.js +2 -2
- package/lib/common/features/contextactions/context-actions-provider-registry.js.map +1 -1
- package/lib/common/features/contextactions/context-menu-item-provider.js +2 -2
- package/lib/common/features/contextactions/context-menu-item-provider.js.map +1 -1
- package/lib/common/features/contextactions/request-context-actions-handler.js +2 -2
- package/lib/common/features/contextactions/request-context-actions-handler.js.map +1 -1
- package/lib/common/features/contextactions/tool-palette-item-provider.js +4 -4
- package/lib/common/features/contextactions/tool-palette-item-provider.js.map +1 -1
- package/lib/common/features/directediting/context-edit-validator-registry.js +2 -2
- package/lib/common/features/directediting/context-edit-validator-registry.js.map +1 -1
- package/lib/common/features/directediting/label-edit-validator.js +2 -2
- package/lib/common/features/directediting/label-edit-validator.js.map +1 -1
- package/lib/common/features/directediting/request-edit-validation-handler.js +2 -2
- package/lib/common/features/directediting/request-edit-validation-handler.js.map +1 -1
- package/lib/common/features/layout/computed-bounds-action-handler.js +2 -2
- package/lib/common/features/layout/computed-bounds-action-handler.js.map +1 -1
- package/lib/common/features/layout/layout-operation-handler.js +2 -2
- package/lib/common/features/layout/layout-operation-handler.js.map +1 -1
- package/lib/common/features/model/gmodel-factory.js +2 -2
- package/lib/common/features/model/gmodel-factory.js.map +1 -1
- package/lib/common/features/model/gmodel-index.js +2 -2
- package/lib/common/features/model/gmodel-index.js.map +1 -1
- package/lib/common/features/model/gmodel-serializer.js +2 -2
- package/lib/common/features/model/gmodel-serializer.js.map +1 -1
- package/lib/common/features/model/model-state.js +2 -2
- package/lib/common/features/model/model-state.js.map +1 -1
- package/lib/common/features/model/model-submission-handler.d.ts +30 -2
- package/lib/common/features/model/model-submission-handler.d.ts.map +1 -1
- package/lib/common/features/model/model-submission-handler.js +57 -8
- package/lib/common/features/model/model-submission-handler.js.map +1 -1
- package/lib/common/features/model/request-model-action-handler.d.ts +5 -6
- package/lib/common/features/model/request-model-action-handler.d.ts.map +1 -1
- package/lib/common/features/model/request-model-action-handler.js +37 -15
- package/lib/common/features/model/request-model-action-handler.js.map +1 -1
- package/lib/common/features/model/save-model-action-handler.js +2 -2
- package/lib/common/features/model/save-model-action-handler.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-provider-registry.js +2 -2
- package/lib/common/features/navigation/navigation-target-provider-registry.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-resolver.js +2 -2
- package/lib/common/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js +2 -2
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js.map +1 -1
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.js +2 -2
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.js.map +1 -1
- package/lib/common/features/popup/request-popup-model-action-handler.js +2 -2
- package/lib/common/features/popup/request-popup-model-action-handler.js.map +1 -1
- package/lib/common/features/progress/progress-service.d.ts +44 -0
- package/lib/common/features/progress/progress-service.d.ts.map +1 -0
- package/lib/common/features/progress/progress-service.js +74 -0
- package/lib/common/features/progress/progress-service.js.map +1 -0
- package/lib/common/features/validation/model-validator.d.ts +47 -2
- package/lib/common/features/validation/model-validator.d.ts.map +1 -1
- package/lib/common/features/validation/model-validator.js +80 -1
- package/lib/common/features/validation/model-validator.js.map +1 -1
- package/lib/common/features/validation/request-markers-handler.d.ts +15 -0
- package/lib/common/features/validation/request-markers-handler.d.ts.map +1 -1
- package/lib/common/features/validation/request-markers-handler.js +5 -11
- package/lib/common/features/validation/request-markers-handler.js.map +1 -1
- package/lib/common/gmodel/apply-label-edit-operation-handler.js +2 -2
- package/lib/common/gmodel/apply-label-edit-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-bounds-operation-handler.js +2 -2
- package/lib/common/gmodel/change-bounds-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-routing-points-operation-handler.js +2 -2
- package/lib/common/gmodel/change-routing-points-operation-handler.js.map +1 -1
- package/lib/common/gmodel/cut-operation-handler.js +2 -2
- package/lib/common/gmodel/cut-operation-handler.js.map +1 -1
- package/lib/common/gmodel/delete-operation-handler.js +2 -2
- package/lib/common/gmodel/delete-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js +2 -2
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js +2 -2
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-diagram-module.js +2 -2
- package/lib/common/gmodel/gmodel-diagram-module.js.map +1 -1
- package/lib/common/gmodel/gmodel-operation-handler.js +1 -1
- package/lib/common/gmodel/gmodel-operation-handler.js.map +1 -1
- package/lib/common/gmodel/paste-operation-handler.js +26 -3
- package/lib/common/gmodel/paste-operation-handler.js.map +1 -1
- package/lib/common/gmodel/reconnect-edge-operation-handler.js +2 -2
- package/lib/common/gmodel/reconnect-edge-operation-handler.js.map +1 -1
- package/lib/common/launch/glsp-server-launcher.js +2 -2
- package/lib/common/launch/glsp-server-launcher.js.map +1 -1
- package/lib/common/launch/jsonrpc-server-launcher.js +2 -2
- package/lib/common/launch/jsonrpc-server-launcher.js.map +1 -1
- package/lib/common/operations/compound-operation-handler.js +6 -11
- package/lib/common/operations/compound-operation-handler.js.map +1 -1
- package/lib/common/operations/create-operation-handler.js +1 -1
- package/lib/common/operations/create-operation-handler.js.map +1 -1
- package/lib/common/operations/operation-action-handler.d.ts.map +1 -1
- package/lib/common/operations/operation-action-handler.js +3 -3
- package/lib/common/operations/operation-action-handler.js.map +1 -1
- package/lib/common/operations/operation-handler-registry.js +4 -4
- package/lib/common/operations/operation-handler-registry.js.map +1 -1
- package/lib/common/operations/operation-handler.js +2 -2
- package/lib/common/operations/operation-handler.js.map +1 -1
- package/lib/common/protocol/client-action.d.ts +31 -0
- package/lib/common/protocol/client-action.d.ts.map +1 -0
- package/lib/common/protocol/client-action.js +35 -0
- package/lib/common/protocol/client-action.js.map +1 -0
- package/lib/common/protocol/glsp-server.d.ts +1 -1
- package/lib/common/protocol/glsp-server.d.ts.map +1 -1
- package/lib/common/protocol/glsp-server.js +9 -11
- package/lib/common/protocol/glsp-server.js.map +1 -1
- package/lib/common/session/client-session-factory.js +5 -5
- package/lib/common/session/client-session-factory.js.map +1 -1
- package/lib/common/session/client-session-manager.js +2 -2
- package/lib/common/session/client-session-manager.js.map +1 -1
- package/lib/common/utils/args-util.js +2 -2
- package/lib/common/utils/args-util.js.map +1 -1
- package/lib/common/utils/client-options-util.d.ts +3 -0
- package/lib/common/utils/client-options-util.d.ts.map +1 -1
- package/lib/common/utils/client-options-util.js +5 -15
- package/lib/common/utils/client-options-util.js.map +1 -1
- package/lib/common/utils/console-logger.js +2 -2
- package/lib/common/utils/console-logger.js.map +1 -1
- package/lib/common/utils/logger.d.ts.map +1 -1
- package/lib/common/utils/logger.js +5 -4
- package/lib/common/utils/logger.js.map +1 -1
- package/lib/common/utils/promise-queue.d.ts.map +1 -1
- package/lib/common/utils/promise-queue.js +3 -6
- package/lib/common/utils/promise-queue.js.map +1 -1
- package/lib/common/utils/registry.js +4 -4
- package/lib/common/utils/registry.js.map +1 -1
- package/lib/node/abstract-json-model-storage.d.ts.map +1 -1
- package/lib/node/abstract-json-model-storage.js +33 -4
- package/lib/node/abstract-json-model-storage.js.map +1 -1
- package/lib/node/di/app-module.js +24 -1
- package/lib/node/di/app-module.js.map +1 -1
- package/lib/node/gmodel/gmodel-storage.js +2 -2
- package/lib/node/gmodel/gmodel-storage.js.map +1 -1
- package/lib/node/launch/cli-parser.js +26 -3
- package/lib/node/launch/cli-parser.js.map +1 -1
- package/lib/node/launch/socket-cli-parser.js +24 -1
- package/lib/node/launch/socket-cli-parser.js.map +1 -1
- package/lib/node/launch/socket-server-launcher.js +27 -4
- package/lib/node/launch/socket-server-launcher.js.map +1 -1
- package/lib/node/launch/websocket-server-launcher.js +27 -4
- package/lib/node/launch/websocket-server-launcher.js.map +1 -1
- package/package.json +6 -5
- package/src/common/actions/action-dispatcher.spec.ts +3 -2
- package/src/common/actions/action-dispatcher.ts +8 -5
- package/src/common/actions/client-action-handler.ts +28 -18
- package/src/common/actions/global-action-provider.spec.ts +4 -15
- package/src/common/actions/global-action-provider.ts +21 -25
- package/src/common/command/recording-command.ts +2 -2
- package/src/common/di/binding-target.ts +1 -0
- package/src/common/di/client-session-module.ts +17 -10
- package/src/common/di/diagram-module.ts +14 -66
- package/src/common/di/server-module.ts +0 -1
- package/src/common/features/model/model-submission-handler.ts +62 -5
- package/src/common/features/model/request-model-action-handler.ts +37 -17
- package/src/common/features/progress/progress-service.ts +74 -0
- package/src/common/features/validation/model-validator.ts +75 -3
- package/src/common/features/validation/request-markers-handler.ts +4 -10
- package/src/common/operations/operation-action-handler.ts +2 -2
- package/src/common/protocol/client-action.ts +38 -0
- package/src/common/protocol/glsp-server.spec.ts +11 -10
- package/src/common/protocol/glsp-server.ts +11 -14
- package/src/common/session/client-session-factory.spec.ts +2 -2
- package/src/common/session/client-session-factory.ts +3 -3
- package/src/common/session/client-session-manager.spec.ts +4 -3
- package/src/common/utils/args-util.ts +1 -1
- package/src/common/utils/client-options-util.ts +8 -0
- package/src/common/utils/logger.ts +2 -1
- package/src/common/utils/promise-queue.ts +4 -5
- package/src/node/abstract-json-model-storage.ts +8 -2
- package/src/node/launch/cli-parser.ts +1 -1
|
@@ -28,7 +28,9 @@ exports.RequestModelActionHandler = void 0;
|
|
|
28
28
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const action_dispatcher_1 = require("../../actions/action-dispatcher");
|
|
31
|
+
const client_options_util_1 = require("../../utils/client-options-util");
|
|
31
32
|
const logger_1 = require("../../utils/logger");
|
|
33
|
+
const progress_service_1 = require("../progress/progress-service");
|
|
32
34
|
const model_state_1 = require("./model-state");
|
|
33
35
|
const model_submission_handler_1 = require("./model-submission-handler");
|
|
34
36
|
const source_model_storage_1 = require("./source-model-storage");
|
|
@@ -40,22 +42,39 @@ let RequestModelActionHandler = class RequestModelActionHandler {
|
|
|
40
42
|
var _a;
|
|
41
43
|
this.logger.debug('Execute RequestModelAction:', action);
|
|
42
44
|
this.modelState.setAll((_a = action.options) !== null && _a !== void 0 ? _a : {});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
const isReconnecting = client_options_util_1.ClientOptionsUtil.isReconnecting(action.options);
|
|
46
|
+
const progress = this.reportModelLoading('Model loading in progress');
|
|
47
|
+
if (isReconnecting) {
|
|
48
|
+
await this.handleReconnect(action);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
await this.sourceModelStorage.loadSourceModel(action);
|
|
52
|
+
}
|
|
53
|
+
this.reportModelLoadingFinished(progress);
|
|
54
|
+
return this.submissionHandler.submitInitialModel(action);
|
|
48
55
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
async handleReconnect(action) {
|
|
57
|
+
var _a;
|
|
58
|
+
const oldModelRoot = this.modelState.root;
|
|
59
|
+
if (oldModelRoot) {
|
|
60
|
+
// decrease revision by one, as each submit will increase it by one;
|
|
61
|
+
// the next save would produce warning that source model was changed otherwise
|
|
62
|
+
this.modelState.root.revision = ((_a = this.modelState.root.revision) !== null && _a !== void 0 ? _a : 0) - 1;
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
await this.sourceModelStorage.loadSourceModel(action);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
reportModelLoading(message) {
|
|
69
|
+
this.actionDispatcher.dispatch(protocol_1.StatusAction.create(message, { severity: 'INFO' }));
|
|
70
|
+
return this.progressService.start(message);
|
|
71
|
+
}
|
|
72
|
+
reportModelLoadingFinished(monitor) {
|
|
73
|
+
this.actionDispatcher.dispatch(protocol_1.StatusAction.create('', { severity: 'NONE' }));
|
|
74
|
+
monitor.end();
|
|
57
75
|
}
|
|
58
76
|
};
|
|
77
|
+
exports.RequestModelActionHandler = RequestModelActionHandler;
|
|
59
78
|
__decorate([
|
|
60
79
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
61
80
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -76,8 +95,11 @@ __decorate([
|
|
|
76
95
|
(0, inversify_1.inject)(model_submission_handler_1.ModelSubmissionHandler),
|
|
77
96
|
__metadata("design:type", model_submission_handler_1.ModelSubmissionHandler)
|
|
78
97
|
], RequestModelActionHandler.prototype, "submissionHandler", void 0);
|
|
79
|
-
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, inversify_1.inject)(progress_service_1.ProgressService),
|
|
100
|
+
__metadata("design:type", Object)
|
|
101
|
+
], RequestModelActionHandler.prototype, "progressService", void 0);
|
|
102
|
+
exports.RequestModelActionHandler = RequestModelActionHandler = __decorate([
|
|
80
103
|
(0, inversify_1.injectable)()
|
|
81
104
|
], RequestModelActionHandler);
|
|
82
|
-
exports.RequestModelActionHandler = RequestModelActionHandler;
|
|
83
105
|
//# sourceMappingURL=request-model-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/request-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"request-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/request-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkF;AAClF,yCAA+C;AAC/C,uEAAmE;AAEnE,yEAAoE;AACpE,+CAA4C;AAC5C,mEAAgF;AAChF,+CAA2C;AAC3C,yEAAoE;AACpE,iEAA4D;AAGrD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACH,gBAAW,GAAG,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC;IA0D5C,CAAC;IAtCG,KAAK,CAAC,OAAO,CAAC,MAA0B;;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC,CAAC;QAE7C,MAAM,cAAc,GAAG,uCAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAExE,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,CAAC;QAEtE,IAAI,cAAc,EAAE;YAChB,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACtC;aAAM;YACH,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACzD;QACD,IAAI,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;QAE1C,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,MAA0B;;QACtD,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAC1C,IAAI,YAAY,EAAE;YACd,oEAAoE;YACpE,8EAA8E;YAC9E,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,MAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,mCAAI,CAAC,CAAC,GAAG,CAAC,CAAC;SAC5E;aAAM;YACH,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACzD;IACL,CAAC;IAES,kBAAkB,CAAC,OAAe;QACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,uBAAY,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QACnF,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAES,0BAA0B,CAAC,OAAwB;QACzD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,uBAAY,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,EAAE,CAAC;IAClB,CAAC;CACJ,CAAA;AA3DY,8DAAyB;AAI1B;IADP,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACC,eAAM;yDAAC;AAGb;IADT,IAAA,kBAAM,EAAC,yCAAkB,CAAC;;qEACsB;AAGvC;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;mEACoB;AAGnC;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;6DACc;AAGvB;IADT,IAAA,kBAAM,EAAC,iDAAsB,CAAC;8BACF,iDAAsB;oEAAC;AAG1C;IADT,IAAA,kBAAM,EAAC,kCAAe,CAAC;;kEACmB;oCAnBlC,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CA2DrC"}
|
|
@@ -39,6 +39,7 @@ let SaveModelActionHandler = class SaveModelActionHandler {
|
|
|
39
39
|
return [protocol_1.SetDirtyStateAction.create(this.commandStack.isDirty, { reason: 'save' })];
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
+
exports.SaveModelActionHandler = SaveModelActionHandler;
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, inversify_1.inject)(command_stack_1.CommandStack),
|
|
44
45
|
__metadata("design:type", Object)
|
|
@@ -47,8 +48,7 @@ __decorate([
|
|
|
47
48
|
(0, inversify_1.inject)(source_model_storage_1.SourceModelStorage),
|
|
48
49
|
__metadata("design:type", Object)
|
|
49
50
|
], SaveModelActionHandler.prototype, "sourceModelStorage", void 0);
|
|
50
|
-
SaveModelActionHandler = __decorate([
|
|
51
|
+
exports.SaveModelActionHandler = SaveModelActionHandler = __decorate([
|
|
51
52
|
(0, inversify_1.injectable)()
|
|
52
53
|
], SaveModelActionHandler);
|
|
53
|
-
exports.SaveModelActionHandler = SaveModelActionHandler;
|
|
54
54
|
//# sourceMappingURL=save-model-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/save-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsF;AACtF,yCAA+C;AAE/C,+DAA2D;AAC3D,iEAA4D;AAGrD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAA5B;QACH,gBAAW,GAAG,CAAC,0BAAe,CAAC,IAAI,CAAC,CAAC;IAazC,CAAC;IALG,KAAK,CAAC,OAAO,CAAC,MAAuB;QACjC,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;QAC/B,OAAO,CAAC,8BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACvF,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"save-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/save-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsF;AACtF,yCAA+C;AAE/C,+DAA2D;AAC3D,iEAA4D;AAGrD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAA5B;QACH,gBAAW,GAAG,CAAC,0BAAe,CAAC,IAAI,CAAC,CAAC;IAazC,CAAC;IALG,KAAK,CAAC,OAAO,CAAC,MAAuB;QACjC,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;QAC/B,OAAO,CAAC,8BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACvF,CAAC;CACJ,CAAA;AAdY,wDAAsB;AAIrB;IADT,IAAA,kBAAM,EAAC,4BAAY,CAAC;;4DACgB;AAG3B;IADT,IAAA,kBAAM,EAAC,yCAAkB,CAAC;;kEACsB;iCAPxC,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAclC"}
|
|
@@ -38,10 +38,10 @@ let DefaultNavigationTargetProviderRegistry = class DefaultNavigationTargetProvi
|
|
|
38
38
|
navigationTargetProviders.forEach(provider => this.register(provider.targetTypeId, provider));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
DefaultNavigationTargetProviderRegistry =
|
|
41
|
+
exports.DefaultNavigationTargetProviderRegistry = DefaultNavigationTargetProviderRegistry;
|
|
42
|
+
exports.DefaultNavigationTargetProviderRegistry = DefaultNavigationTargetProviderRegistry = __decorate([
|
|
42
43
|
__param(0, (0, inversify_1.multiInject)(service_identifiers_1.NavigationTargetProviders)),
|
|
43
44
|
__param(0, (0, inversify_1.optional)()),
|
|
44
45
|
__metadata("design:paramtypes", [Array])
|
|
45
46
|
], DefaultNavigationTargetProviderRegistry);
|
|
46
|
-
exports.DefaultNavigationTargetProviderRegistry = DefaultNavigationTargetProviderRegistry;
|
|
47
47
|
//# sourceMappingURL=navigation-target-provider-registry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-provider-registry.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-provider-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAkD;AAClD,sEAAyE;AACzE,mDAAgD;AAGnC,QAAA,gCAAgC,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"navigation-target-provider-registry.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-provider-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAkD;AAClD,sEAAyE;AACzE,mDAAgD;AAGnC,QAAA,gCAAgC,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;AAO3F,IAAa,uCAAuC,GAApD,MAAa,uCACT,SAAQ,mBAA0C;IAGlD,YAAgE,4BAAwD,EAAE;QACtH,KAAK,EAAE,CAAC;QACR,yBAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAClG,CAAC;CACJ,CAAA;AARY,0FAAuC;kDAAvC,uCAAuC;IAInC,WAAA,IAAA,uBAAW,EAAC,+CAAyB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;;GAJtD,uCAAuC,CAQnD"}
|
|
@@ -42,8 +42,8 @@ let NavigationTargetResolver = class NavigationTargetResolver {
|
|
|
42
42
|
args[this.ERROR] = message;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
NavigationTargetResolver =
|
|
45
|
+
exports.NavigationTargetResolver = NavigationTargetResolver;
|
|
46
|
+
exports.NavigationTargetResolver = NavigationTargetResolver = __decorate([
|
|
46
47
|
(0, inversify_1.injectable)()
|
|
47
48
|
], NavigationTargetResolver);
|
|
48
|
-
exports.NavigationTargetResolver = NavigationTargetResolver;
|
|
49
49
|
//# sourceMappingURL=navigation-target-resolver.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-resolver.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAIhC,IAAe,wBAAwB,GAAvC,MAAe,wBAAwB;IAAvC;QACM,SAAI,GAAG,MAAM,CAAC;QACd,YAAO,GAAG,SAAS,CAAC;QACpB,UAAK,GAAG,OAAO,CAAC;IAqC7B,CAAC;IAjCG,UAAU;QACN,OAAO,EAAE,CAAC;IACd,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,qBAAqB,CAAC,OAAe;QACjC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,mBAAmB,CAAC,OAAe;QAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,OAAe,EAAE,IAAU;QAC/B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;IAC9B,CAAC;IAED,UAAU,CAAC,OAAe,EAAE,IAAU;QAClC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAAe,EAAE,IAAU;QAChC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;IAC/B,CAAC;CACJ,CAAA;AAxCqB,wBAAwB;IAD7C,IAAA,sBAAU,GAAE;GACS,wBAAwB,CAwC7C
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAIhC,IAAe,wBAAwB,GAAvC,MAAe,wBAAwB;IAAvC;QACM,SAAI,GAAG,MAAM,CAAC;QACd,YAAO,GAAG,SAAS,CAAC;QACpB,UAAK,GAAG,OAAO,CAAC;IAqC7B,CAAC;IAjCG,UAAU;QACN,OAAO,EAAE,CAAC;IACd,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,qBAAqB,CAAC,OAAe;QACjC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,mBAAmB,CAAC,OAAe;QAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,OAAe,EAAE,IAAU;QAC/B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;IAC9B,CAAC;IAED,UAAU,CAAC,OAAe,EAAE,IAAU;QAClC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAAe,EAAE,IAAU;QAChC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;IAC/B,CAAC;CACJ,CAAA;AAxCqB,4DAAwB;mCAAxB,wBAAwB;IAD7C,IAAA,sBAAU,GAAE;GACS,wBAAwB,CAwC7C"}
|
|
@@ -44,12 +44,12 @@ let RequestNavigationTargetsActionHandler = class RequestNavigationTargetsAction
|
|
|
44
44
|
return [protocol_1.SetNavigationTargetsAction.create(allTargets, { args: editorContext.args })];
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
+
exports.RequestNavigationTargetsActionHandler = RequestNavigationTargetsActionHandler;
|
|
47
48
|
__decorate([
|
|
48
49
|
(0, inject_1.inject)(navigation_target_provider_registry_1.NavigationTargetProviderRegistry),
|
|
49
50
|
__metadata("design:type", Object)
|
|
50
51
|
], RequestNavigationTargetsActionHandler.prototype, "navigationTargetProviderRegistry", void 0);
|
|
51
|
-
RequestNavigationTargetsActionHandler = __decorate([
|
|
52
|
+
exports.RequestNavigationTargetsActionHandler = RequestNavigationTargetsActionHandler = __decorate([
|
|
52
53
|
(0, inversify_1.injectable)()
|
|
53
54
|
], RequestNavigationTargetsActionHandler);
|
|
54
|
-
exports.RequestNavigationTargetsActionHandler = RequestNavigationTargetsActionHandler;
|
|
55
55
|
//# sourceMappingURL=request-navigation-targets-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/request-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4I;AAC5I,yCAAuC;AACvC,4DAAyD;AAEzD,+FAAyF;AAGlF,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAA3C;QACH,gBAAW,GAAG,CAAC,yCAA8B,CAAC,IAAI,CAAC,CAAC;IAexD,CAAC;IAVG,OAAO,CAAC,MAAsC;QAC1C,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC3C,MAAM,UAAU,GAAuB,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,gCAAgC,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChF,IAAI,QAAQ,EAAE;YACV,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;YACnD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SACtD;QACD,OAAO,CAAC,qCAA0B,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzF,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"request-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/request-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4I;AAC5I,yCAAuC;AACvC,4DAAyD;AAEzD,+FAAyF;AAGlF,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAA3C;QACH,gBAAW,GAAG,CAAC,yCAA8B,CAAC,IAAI,CAAC,CAAC;IAexD,CAAC;IAVG,OAAO,CAAC,MAAsC;QAC1C,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC3C,MAAM,UAAU,GAAuB,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,gCAAgC,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChF,IAAI,QAAQ,EAAE;YACV,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;YACnD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SACtD;QACD,OAAO,CAAC,qCAA0B,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzF,CAAC;CACJ,CAAA;AAhBY,sFAAqC;AAIpC;IADT,IAAA,eAAM,EAAC,sEAAgC,CAAC;;+FACoC;gDAJpE,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAgBjD"}
|
|
@@ -43,6 +43,7 @@ let ResolveNavigationTargetsActionHandler = class ResolveNavigationTargetsAction
|
|
|
43
43
|
return [protocol_1.SetResolvedNavigationTargetAction.create(resolution.elementIds, { args: resolution.args })];
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.ResolveNavigationTargetsActionHandler = ResolveNavigationTargetsActionHandler;
|
|
46
47
|
__decorate([
|
|
47
48
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
48
49
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -52,8 +53,7 @@ __decorate([
|
|
|
52
53
|
(0, inversify_1.optional)(),
|
|
53
54
|
__metadata("design:type", navigation_target_resolver_1.NavigationTargetResolver)
|
|
54
55
|
], ResolveNavigationTargetsActionHandler.prototype, "navigationTargetResolver", void 0);
|
|
55
|
-
ResolveNavigationTargetsActionHandler = __decorate([
|
|
56
|
+
exports.ResolveNavigationTargetsActionHandler = ResolveNavigationTargetsActionHandler = __decorate([
|
|
56
57
|
(0, inversify_1.injectable)()
|
|
57
58
|
], ResolveNavigationTargetsActionHandler);
|
|
58
|
-
exports.ResolveNavigationTargetsActionHandler = ResolveNavigationTargetsActionHandler;
|
|
59
59
|
//# sourceMappingURL=resolve-navigation-targets-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/resolve-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkH;AAClH,yCAAyD;AAEzD,+CAA4C;AAC5C,6EAAwE;AAGjE,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAA3C;QACH,gBAAW,GAAG,CAAC,wCAA6B,CAAC,IAAI,CAAC,CAAC;IAkBvD,CAAC;IATG,KAAK,CAAC,OAAO,CAAC,MAAqC;QAC/C,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAChC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qGAAqG,CAAC,CAAC;YACxH,OAAO,EAAE,CAAC;SACb;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC;QACvC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvE,OAAO,CAAC,4CAAiC,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACxG,CAAC;CACJ,CAAA;
|
|
1
|
+
{"version":3,"file":"resolve-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/resolve-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkH;AAClH,yCAAyD;AAEzD,+CAA4C;AAC5C,6EAAwE;AAGjE,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAA3C;QACH,gBAAW,GAAG,CAAC,wCAA6B,CAAC,IAAI,CAAC,CAAC;IAkBvD,CAAC;IATG,KAAK,CAAC,OAAO,CAAC,MAAqC;QAC/C,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAChC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qGAAqG,CAAC,CAAC;YACxH,OAAO,EAAE,CAAC;SACb;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC;QACvC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvE,OAAO,CAAC,4CAAiC,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACxG,CAAC;CACJ,CAAA;AAnBY,sFAAqC;AAIpC;IADT,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACG,eAAM;qEAAC;AAIN;IAFlB,IAAA,kBAAM,EAAC,qDAAwB,CAAC;IAChC,IAAA,oBAAQ,GAAE;8BACkC,qDAAwB;uFAAC;gDAR7D,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAmBjD"}
|
|
@@ -53,6 +53,7 @@ let RequestPopupModelActionHandler = class RequestPopupModelActionHandler {
|
|
|
53
53
|
return [];
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
+
exports.RequestPopupModelActionHandler = RequestPopupModelActionHandler;
|
|
56
57
|
__decorate([
|
|
57
58
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
58
59
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -70,8 +71,7 @@ __decorate([
|
|
|
70
71
|
(0, inversify_1.inject)(gmodel_serializer_1.GModelSerializer),
|
|
71
72
|
__metadata("design:type", Object)
|
|
72
73
|
], RequestPopupModelActionHandler.prototype, "modelSerializer", void 0);
|
|
73
|
-
RequestPopupModelActionHandler = __decorate([
|
|
74
|
+
exports.RequestPopupModelActionHandler = RequestPopupModelActionHandler = __decorate([
|
|
74
75
|
(0, inversify_1.injectable)()
|
|
75
76
|
], RequestPopupModelActionHandler);
|
|
76
|
-
exports.RequestPopupModelActionHandler = RequestPopupModelActionHandler;
|
|
77
77
|
//# sourceMappingURL=request-popup-model-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-popup-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/popup/request-popup-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4G;AAC5G,yCAAyD;AAEzD,qEAAgE;AAChE,+CAA4C;AAC5C,kEAA8D;AAC9D,sDAAkD;AAClD,+DAA0D;AAGnD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAApC;QAcH,gBAAW,GAAG,CAAC,kCAAuB,CAAC,IAAI,CAAC,CAAC;IAoBjD,CAAC;IAlBG,OAAO,CAAC,MAA+B;QACnC,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAClE,IAAI,YAAY,EAAE;gBACd,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;gBACjF,IAAI,UAAU,EAAE;oBACZ,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;oBAClE,OAAO,CAAC,8BAAmB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;iBACpD;gBACD,OAAO,EAAE,CAAC;aACb;YACD,MAAM,IAAI,mCAAe,CAAC,sEAAsE,MAAM,CAAC,SAAS,YAAY,CAAC,CAAC;SACjI;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC;QACjG,OAAO,EAAE,CAAC;IACd,CAAC;CAGJ,CAAA;
|
|
1
|
+
{"version":3,"file":"request-popup-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/popup/request-popup-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4G;AAC5G,yCAAyD;AAEzD,qEAAgE;AAChE,+CAA4C;AAC5C,kEAA8D;AAC9D,sDAAkD;AAClD,+DAA0D;AAGnD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAApC;QAcH,gBAAW,GAAG,CAAC,kCAAuB,CAAC,IAAI,CAAC,CAAC;IAoBjD,CAAC;IAlBG,OAAO,CAAC,MAA+B;QACnC,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAClE,IAAI,YAAY,EAAE;gBACd,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;gBACjF,IAAI,UAAU,EAAE;oBACZ,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;oBAClE,OAAO,CAAC,8BAAmB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;iBACpD;gBACD,OAAO,EAAE,CAAC;aACb;YACD,MAAM,IAAI,mCAAe,CAAC,sEAAsE,MAAM,CAAC,SAAS,YAAY,CAAC,CAAC;SACjI;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC;QACjG,OAAO,EAAE,CAAC;IACd,CAAC;CAGJ,CAAA;AAlCY,wEAA8B;AAE7B;IADT,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACG,eAAM;8DAAC;AAIf;IAFT,IAAA,kBAAM,EAAC,uCAAiB,CAAC;IACzB,IAAA,oBAAQ,GAAE;;yEACqC;AAGtC;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;kEACc;AAGvB;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;uEACmB;yCAZnC,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CAkC1C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ActionDispatcher } from '../../actions/action-dispatcher';
|
|
2
|
+
export declare const ProgressService: unique symbol;
|
|
3
|
+
/**
|
|
4
|
+
* Service for starting and monitoring progress reporting to the client.
|
|
5
|
+
*/
|
|
6
|
+
export interface ProgressService {
|
|
7
|
+
/**
|
|
8
|
+
* Start a progress reporting.
|
|
9
|
+
* @param title The title shown in the UI for the progress reporting.
|
|
10
|
+
* @param options Additional optional options for the progress reporting.
|
|
11
|
+
* @returns a monitor to update and end the progress reporting later.
|
|
12
|
+
*/
|
|
13
|
+
start(title: string, options?: ProgressOptions): ProgressMonitor;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Optional progress reporting options.
|
|
17
|
+
*/
|
|
18
|
+
export interface ProgressOptions {
|
|
19
|
+
/** A message shown in the UI. */
|
|
20
|
+
message?: string;
|
|
21
|
+
percentage?: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The monitor of a progress reporting, which can be used to update and end the reporting.
|
|
25
|
+
*/
|
|
26
|
+
export interface ProgressMonitor {
|
|
27
|
+
/**
|
|
28
|
+
* Updates an ongoing progress reporting.
|
|
29
|
+
* @param options Updated message and/or percentage (value range: 0 to 100).
|
|
30
|
+
*/
|
|
31
|
+
update(options: {
|
|
32
|
+
message?: string;
|
|
33
|
+
percentage?: number;
|
|
34
|
+
}): void;
|
|
35
|
+
/**
|
|
36
|
+
* Ends an ongoing progress reporting.
|
|
37
|
+
*/
|
|
38
|
+
end(): void;
|
|
39
|
+
}
|
|
40
|
+
export declare class DefaultProgressService implements ProgressService {
|
|
41
|
+
protected actionDispatcher: ActionDispatcher;
|
|
42
|
+
start(title: string, options?: ProgressOptions): ProgressMonitor;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=progress-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-service.d.ts","sourceRoot":"","sources":["../../../../src/common/features/progress/progress-service.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,eAAO,MAAM,eAAe,eAA4B,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;;OAKG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe,CAAC;CACpE;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,MAAM,CAAC,OAAO,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjE;;OAEG;IACH,GAAG,IAAI,IAAI,CAAC;CACf;AAED,qBACa,sBAAuB,YAAW,eAAe;IAE1D,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE7C,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,eAAe;CAQnE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.DefaultProgressService = exports.ProgressService = void 0;
|
|
36
|
+
/********************************************************************************
|
|
37
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
38
|
+
*
|
|
39
|
+
* This program and the accompanying materials are made available under the
|
|
40
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
41
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
42
|
+
*
|
|
43
|
+
* This Source Code may also be made available under the following Secondary
|
|
44
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
45
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
46
|
+
* with the GNU Classpath Exception which is available at
|
|
47
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
48
|
+
*
|
|
49
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
50
|
+
********************************************************************************/
|
|
51
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
52
|
+
const inversify_1 = require("inversify");
|
|
53
|
+
const uuid = __importStar(require("uuid"));
|
|
54
|
+
const action_dispatcher_1 = require("../../actions/action-dispatcher");
|
|
55
|
+
exports.ProgressService = Symbol('ProgressService');
|
|
56
|
+
let DefaultProgressService = class DefaultProgressService {
|
|
57
|
+
start(title, options) {
|
|
58
|
+
const progressId = uuid.v4();
|
|
59
|
+
this.actionDispatcher.dispatch(protocol_1.StartProgressAction.create(Object.assign({ progressId, title }, options)));
|
|
60
|
+
return {
|
|
61
|
+
update: updateOptions => this.actionDispatcher.dispatch(protocol_1.UpdateProgressAction.create(progressId, updateOptions)),
|
|
62
|
+
end: () => this.actionDispatcher.dispatch(protocol_1.EndProgressAction.create(progressId))
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
exports.DefaultProgressService = DefaultProgressService;
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, inversify_1.inject)(action_dispatcher_1.ActionDispatcher),
|
|
69
|
+
__metadata("design:type", Object)
|
|
70
|
+
], DefaultProgressService.prototype, "actionDispatcher", void 0);
|
|
71
|
+
exports.DefaultProgressService = DefaultProgressService = __decorate([
|
|
72
|
+
(0, inversify_1.injectable)()
|
|
73
|
+
], DefaultProgressService);
|
|
74
|
+
//# sourceMappingURL=progress-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-service.js","sourceRoot":"","sources":["../../../../src/common/features/progress/progress-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsG;AACtG,yCAA+C;AAC/C,2CAA6B;AAC7B,uEAAmE;AAEtD,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAyClD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAI/B,KAAK,CAAC,KAAa,EAAE,OAAyB;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,8BAAmB,CAAC,MAAM,iBAAG,UAAU,EAAE,KAAK,IAAK,OAAO,EAAG,CAAC,CAAC;QAC9F,OAAO;YACH,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,+BAAoB,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;YAC/G,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,4BAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;SAClF,CAAC;IACN,CAAC;CACJ,CAAA;AAZY,wDAAsB;AAErB;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;gEACoB;iCAFpC,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAYlC"}
|
|
@@ -26,8 +26,53 @@ export interface ModelValidator {
|
|
|
26
26
|
* Validates the given list of {@link GModelElement}s and returns a list of {@link Marker}s.
|
|
27
27
|
*
|
|
28
28
|
* @param elements The list of {@link GModelElement} to validate.
|
|
29
|
-
* @
|
|
29
|
+
* @param reason The reason for a validation request, such as "batch" or "live" validation.
|
|
30
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}s.
|
|
30
31
|
*/
|
|
31
|
-
validate(elements: GModelElement[]): MaybePromise<Marker[]>;
|
|
32
|
+
validate(elements: GModelElement[], reason?: string): MaybePromise<Marker[]>;
|
|
33
|
+
}
|
|
34
|
+
export declare abstract class AbstractModelValidator implements ModelValidator {
|
|
35
|
+
validate(elements: GModelElement[], reason: string): Marker[];
|
|
36
|
+
/**
|
|
37
|
+
* Perform the live validation rules for the given <code>element</code>.
|
|
38
|
+
*
|
|
39
|
+
* This will be invoked on start and after each operation for all elements.
|
|
40
|
+
* Thus, the validation should be rather inexpensive.
|
|
41
|
+
* There is no need to traverse through the children in this method as {@link #validate(List, String)} will invoke
|
|
42
|
+
* this method for all children anyway.
|
|
43
|
+
*
|
|
44
|
+
* @param element The element to validate.
|
|
45
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}.
|
|
46
|
+
*/
|
|
47
|
+
doLiveValidation(element: GModelElement): Marker[];
|
|
48
|
+
/**
|
|
49
|
+
* Perform the batch validation rules for the given <code>element</code>.
|
|
50
|
+
*
|
|
51
|
+
* <p>
|
|
52
|
+
* This will be invoked on demand by the client.
|
|
53
|
+
* Thus, the validation can include more expensive validation rules.
|
|
54
|
+
* There is no need to traverse through the children in this method as {@link #validate(List, String)} will invoke
|
|
55
|
+
* this method for all children anyway.
|
|
56
|
+
* </p>
|
|
57
|
+
*
|
|
58
|
+
* @param element The element to validate.
|
|
59
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}.
|
|
60
|
+
*/
|
|
61
|
+
doBatchValidation(element: GModelElement): Marker[];
|
|
62
|
+
/**
|
|
63
|
+
* Perform a validation for a custom <code>reason</code> with the given <code>element</code>.
|
|
64
|
+
*
|
|
65
|
+
* <p>
|
|
66
|
+
* GLSP editors may add custom reasons for triggering a validation, other than <code>live</code> and
|
|
67
|
+
* <code>batch</code>.
|
|
68
|
+
* Validation requests that are not live or batch validations will be handled by this method.
|
|
69
|
+
* There is no need to traverse through the children in this method as {@link #validate(List, String)} will invoke
|
|
70
|
+
* this method for all children anyway.
|
|
71
|
+
* </p>
|
|
72
|
+
*
|
|
73
|
+
* @param element The element to validate.
|
|
74
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}.
|
|
75
|
+
*/
|
|
76
|
+
doValidationForCustomReason(element: GModelElement): Marker[];
|
|
32
77
|
}
|
|
33
78
|
//# sourceMappingURL=model-validator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-validator.d.ts","sourceRoot":"","sources":["../../../../src/common/features/validation/model-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"model-validator.d.ts","sourceRoot":"","sources":["../../../../src/common/features/validation/model-validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAiB,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG7E,eAAO,MAAM,cAAc,eAA2B,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC;CAChF;AAED,8BACsB,sBAAuB,YAAW,cAAc;IAClE,QAAQ,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE;IAiB7D;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE;IAIlD;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE;IAInD;;;;;;;;;;;;;OAaG;IACH,2BAA2B,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE;CAGhE"}
|
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ModelValidator = void 0;
|
|
9
|
+
exports.AbstractModelValidator = exports.ModelValidator = void 0;
|
|
10
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
11
|
+
const inversify_1 = require("inversify");
|
|
4
12
|
exports.ModelValidator = Symbol('ModelValidator');
|
|
13
|
+
let AbstractModelValidator = class AbstractModelValidator {
|
|
14
|
+
validate(elements, reason) {
|
|
15
|
+
const markers = [];
|
|
16
|
+
for (const element of elements) {
|
|
17
|
+
if (protocol_1.MarkersReason.LIVE === reason) {
|
|
18
|
+
markers.push(...this.doLiveValidation(element));
|
|
19
|
+
}
|
|
20
|
+
else if (protocol_1.MarkersReason.BATCH === reason) {
|
|
21
|
+
markers.push(...this.doBatchValidation(element));
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
markers.push(...this.doValidationForCustomReason(element));
|
|
25
|
+
}
|
|
26
|
+
if (element.children) {
|
|
27
|
+
markers.push(...this.validate(element.children, reason));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return markers;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Perform the live validation rules for the given <code>element</code>.
|
|
34
|
+
*
|
|
35
|
+
* This will be invoked on start and after each operation for all elements.
|
|
36
|
+
* Thus, the validation should be rather inexpensive.
|
|
37
|
+
* There is no need to traverse through the children in this method as {@link #validate(List, String)} will invoke
|
|
38
|
+
* this method for all children anyway.
|
|
39
|
+
*
|
|
40
|
+
* @param element The element to validate.
|
|
41
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}.
|
|
42
|
+
*/
|
|
43
|
+
doLiveValidation(element) {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Perform the batch validation rules for the given <code>element</code>.
|
|
48
|
+
*
|
|
49
|
+
* <p>
|
|
50
|
+
* This will be invoked on demand by the client.
|
|
51
|
+
* Thus, the validation can include more expensive validation rules.
|
|
52
|
+
* There is no need to traverse through the children in this method as {@link #validate(List, String)} will invoke
|
|
53
|
+
* this method for all children anyway.
|
|
54
|
+
* </p>
|
|
55
|
+
*
|
|
56
|
+
* @param element The element to validate.
|
|
57
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}.
|
|
58
|
+
*/
|
|
59
|
+
doBatchValidation(element) {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Perform a validation for a custom <code>reason</code> with the given <code>element</code>.
|
|
64
|
+
*
|
|
65
|
+
* <p>
|
|
66
|
+
* GLSP editors may add custom reasons for triggering a validation, other than <code>live</code> and
|
|
67
|
+
* <code>batch</code>.
|
|
68
|
+
* Validation requests that are not live or batch validations will be handled by this method.
|
|
69
|
+
* There is no need to traverse through the children in this method as {@link #validate(List, String)} will invoke
|
|
70
|
+
* this method for all children anyway.
|
|
71
|
+
* </p>
|
|
72
|
+
*
|
|
73
|
+
* @param element The element to validate.
|
|
74
|
+
* @return A list of {@link Marker}s for the validated {@link GModelElement}.
|
|
75
|
+
*/
|
|
76
|
+
doValidationForCustomReason(element) {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
exports.AbstractModelValidator = AbstractModelValidator;
|
|
81
|
+
exports.AbstractModelValidator = AbstractModelValidator = __decorate([
|
|
82
|
+
(0, inversify_1.injectable)()
|
|
83
|
+
], AbstractModelValidator);
|
|
5
84
|
//# sourceMappingURL=model-validator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-validator.js","sourceRoot":"","sources":["../../../../src/common/features/validation/model-validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"model-validator.js","sourceRoot":"","sources":["../../../../src/common/features/validation/model-validator.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,qDAA6E;AAC7E,yCAAuC;AAE1B,QAAA,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAmBhD,IAAe,sBAAsB,GAArC,MAAe,sBAAsB;IACxC,QAAQ,CAAC,QAAyB,EAAE,MAAc;QAC9C,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,IAAI,wBAAa,CAAC,IAAI,KAAK,MAAM,EAAE;gBAC/B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;aACnD;iBAAM,IAAI,wBAAa,CAAC,KAAK,KAAK,MAAM,EAAE;gBACvC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;aACpD;iBAAM;gBACH,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC,CAAC;aAC9D;YACD,IAAI,OAAO,CAAC,QAAQ,EAAE;gBAClB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5D;SACJ;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,OAAsB;QACnC,OAAO,EAAE,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,OAAsB;QACpC,OAAO,EAAE,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,2BAA2B,CAAC,OAAsB;QAC9C,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAnEqB,wDAAsB;iCAAtB,sBAAsB;IAD3C,IAAA,sBAAU,GAAE;GACS,sBAAsB,CAmE3C"}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
1
16
|
import { Action, RequestMarkersAction } from '@eclipse-glsp/protocol';
|
|
2
17
|
import { ActionHandler } from '../../actions/action-handler';
|
|
3
18
|
import { ModelState } from '../model/model-state';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-markers-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/validation/request-markers-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"request-markers-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/validation/request-markers-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAiB,oBAAoB,EAAoB,MAAM,wBAAwB,CAAC;AAEvG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBACa,qBAAsB,YAAW,aAAa;IACvD,WAAW,WAA+B;IAEN,SAAS,EAAE,cAAc,CAAC;IAC1C,UAAU,EAAE,UAAU,CAAC;IAErC,OAAO,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAejE"}
|
|
@@ -25,7 +25,6 @@ exports.RequestMarkersHandler = void 0;
|
|
|
25
25
|
*
|
|
26
26
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
27
|
********************************************************************************/
|
|
28
|
-
const graph_1 = require("@eclipse-glsp/graph");
|
|
29
28
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
30
29
|
const inversify_1 = require("inversify");
|
|
31
30
|
const glsp_server_error_1 = require("../../utils/glsp-server-error");
|
|
@@ -36,6 +35,7 @@ let RequestMarkersHandler = class RequestMarkersHandler {
|
|
|
36
35
|
this.actionKinds = [protocol_1.RequestMarkersAction.KIND];
|
|
37
36
|
}
|
|
38
37
|
async execute(action) {
|
|
38
|
+
var _a;
|
|
39
39
|
let elementIDs = action.elementsIDs;
|
|
40
40
|
if (!this.validator) {
|
|
41
41
|
throw new glsp_server_error_1.GLSPServerError('Cannot compute markers! No implementation for ModelValidator has been bound');
|
|
@@ -43,17 +43,12 @@ let RequestMarkersHandler = class RequestMarkersHandler {
|
|
|
43
43
|
if (!elementIDs || elementIDs.length === 0 || (elementIDs.length === 1 && elementIDs[0] === 'EMPTY')) {
|
|
44
44
|
elementIDs = [this.modelState.root.id];
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
for (const elementID of elementIDs) {
|
|
49
|
-
const modelElement = currentModelIndex.findByClass(elementID, graph_1.GGraph);
|
|
50
|
-
if (modelElement) {
|
|
51
|
-
markers = markers.concat(await this.validator.validate([modelElement]));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
46
|
+
const modelElements = this.modelState.index.getAll(elementIDs);
|
|
47
|
+
const markers = await this.validator.validate(modelElements, (_a = action.reason) !== null && _a !== void 0 ? _a : protocol_1.MarkersReason.BATCH);
|
|
54
48
|
return [protocol_1.SetMarkersAction.create(markers)];
|
|
55
49
|
}
|
|
56
50
|
};
|
|
51
|
+
exports.RequestMarkersHandler = RequestMarkersHandler;
|
|
57
52
|
__decorate([
|
|
58
53
|
(0, inversify_1.inject)(model_validator_1.ModelValidator),
|
|
59
54
|
(0, inversify_1.optional)(),
|
|
@@ -63,8 +58,7 @@ __decorate([
|
|
|
63
58
|
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
64
59
|
__metadata("design:type", Object)
|
|
65
60
|
], RequestMarkersHandler.prototype, "modelState", void 0);
|
|
66
|
-
RequestMarkersHandler = __decorate([
|
|
61
|
+
exports.RequestMarkersHandler = RequestMarkersHandler = __decorate([
|
|
67
62
|
(0, inversify_1.injectable)()
|
|
68
63
|
], RequestMarkersHandler);
|
|
69
|
-
exports.RequestMarkersHandler = RequestMarkersHandler;
|
|
70
64
|
//# sourceMappingURL=request-markers-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-markers-handler.js","sourceRoot":"","sources":["../../../../src/common/features/validation/request-markers-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF
|
|
1
|
+
{"version":3,"file":"request-markers-handler.js","sourceRoot":"","sources":["../../../../src/common/features/validation/request-markers-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuG;AACvG,yCAAyD;AAEzD,qEAAgE;AAChE,sDAAkD;AAClD,uDAAmD;AAG5C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAA3B;QACH,gBAAW,GAAG,CAAC,+BAAoB,CAAC,IAAI,CAAC,CAAC;IAoB9C,CAAC;IAfG,KAAK,CAAC,OAAO,CAAC,MAA4B;;QACtC,IAAI,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,MAAM,IAAI,mCAAe,CAAC,6EAA6E,CAAC,CAAC;SAC5G;QAED,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAE;YAClG,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAC1C;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAA,MAAM,CAAC,MAAM,mCAAI,wBAAa,CAAC,KAAK,CAAC,CAAC;QAEnG,OAAO,CAAC,2BAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,CAAC;CACJ,CAAA;AArBY,sDAAqB;AAGM;IAAnC,IAAA,kBAAM,EAAC,gCAAc,CAAC;IAAE,IAAA,oBAAQ,GAAE;;wDAA2B;AAC1C;IAAnB,IAAA,kBAAM,EAAC,wBAAU,CAAC;;yDAAwB;gCAJlC,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAqBjC"}
|
|
@@ -39,8 +39,8 @@ let GModelApplyLabelEditOperationHandler = class GModelApplyLabelEditOperationHa
|
|
|
39
39
|
: undefined;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
GModelApplyLabelEditOperationHandler =
|
|
42
|
+
exports.GModelApplyLabelEditOperationHandler = GModelApplyLabelEditOperationHandler;
|
|
43
|
+
exports.GModelApplyLabelEditOperationHandler = GModelApplyLabelEditOperationHandler = __decorate([
|
|
43
44
|
(0, inversify_1.injectable)()
|
|
44
45
|
], GModelApplyLabelEditOperationHandler);
|
|
45
|
-
exports.GModelApplyLabelEditOperationHandler = GModelApplyLabelEditOperationHandler;
|
|
46
46
|
//# sourceMappingURL=apply-label-edit-operation-handler.js.map
|