@eclipse-glsp/server 1.1.0-next.5fd686c.61 → 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 -2
- 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 -6
- package/lib/common/actions/action-dispatcher.js.map +1 -1
- package/lib/common/actions/action-handler-registry.js +4 -2
- 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 -21
- 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 -21
- package/lib/common/actions/global-action-provider.js.map +1 -1
- package/lib/common/command/command-stack.js +2 -1
- package/lib/common/command/command-stack.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 -1
- package/lib/common/command/undo-redo-action-handler.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 +17 -1
- package/lib/common/di/diagram-module.d.ts.map +1 -1
- package/lib/common/di/diagram-module.js +4 -51
- package/lib/common/di/diagram-module.js.map +1 -1
- package/lib/common/di/glsp-module.js +2 -1
- 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/request-type-hints-action-handler.js +2 -1
- 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 -1
- 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 -1
- package/lib/common/features/contextactions/command-palette-action-provider.js.map +1 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.js +2 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.js.map +1 -1
- package/lib/common/features/contextactions/context-menu-item-provider.js +2 -1
- package/lib/common/features/contextactions/context-menu-item-provider.js.map +1 -1
- package/lib/common/features/contextactions/request-context-actions-handler.js +2 -1
- package/lib/common/features/contextactions/request-context-actions-handler.js.map +1 -1
- package/lib/common/features/contextactions/tool-palette-item-provider.js +4 -2
- package/lib/common/features/contextactions/tool-palette-item-provider.js.map +1 -1
- package/lib/common/features/directediting/context-edit-validator-registry.js +2 -1
- package/lib/common/features/directediting/context-edit-validator-registry.js.map +1 -1
- package/lib/common/features/directediting/label-edit-validator.js +2 -1
- package/lib/common/features/directediting/label-edit-validator.js.map +1 -1
- package/lib/common/features/directediting/request-edit-validation-handler.js +2 -1
- package/lib/common/features/directediting/request-edit-validation-handler.js.map +1 -1
- package/lib/common/features/layout/computed-bounds-action-handler.js +2 -1
- package/lib/common/features/layout/computed-bounds-action-handler.js.map +1 -1
- package/lib/common/features/layout/layout-operation-handler.js +2 -1
- package/lib/common/features/layout/layout-operation-handler.js.map +1 -1
- package/lib/common/features/model/gmodel-factory.js +2 -1
- package/lib/common/features/model/gmodel-factory.js.map +1 -1
- package/lib/common/features/model/gmodel-index.js +2 -1
- package/lib/common/features/model/gmodel-index.js.map +1 -1
- package/lib/common/features/model/gmodel-serializer.js +2 -1
- package/lib/common/features/model/gmodel-serializer.js.map +1 -1
- package/lib/common/features/model/model-state.js +2 -1
- package/lib/common/features/model/model-state.js.map +1 -1
- package/lib/common/features/model/model-submission-handler.d.ts +28 -2
- package/lib/common/features/model/model-submission-handler.d.ts.map +1 -1
- package/lib/common/features/model/model-submission-handler.js +47 -7
- package/lib/common/features/model/model-submission-handler.js.map +1 -1
- package/lib/common/features/model/request-model-action-handler.d.ts.map +1 -1
- package/lib/common/features/model/request-model-action-handler.js +5 -4
- package/lib/common/features/model/request-model-action-handler.js.map +1 -1
- package/lib/common/features/model/save-model-action-handler.js +2 -1
- package/lib/common/features/model/save-model-action-handler.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-provider-registry.js +2 -1
- package/lib/common/features/navigation/navigation-target-provider-registry.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-resolver.js +2 -1
- package/lib/common/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js +2 -1
- 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 -1
- 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 -1
- package/lib/common/features/popup/request-popup-model-action-handler.js.map +1 -1
- package/lib/common/features/progress/progress-service.js +26 -2
- package/lib/common/features/progress/progress-service.js.map +1 -1
- package/lib/common/features/validation/model-validator.js +2 -1
- package/lib/common/features/validation/model-validator.js.map +1 -1
- package/lib/common/features/validation/request-markers-handler.js +2 -1
- package/lib/common/features/validation/request-markers-handler.js.map +1 -1
- package/lib/common/gmodel/apply-label-edit-operation-handler.js +2 -1
- package/lib/common/gmodel/apply-label-edit-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-bounds-operation-handler.js +2 -1
- package/lib/common/gmodel/change-bounds-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-routing-points-operation-handler.js +2 -1
- package/lib/common/gmodel/change-routing-points-operation-handler.js.map +1 -1
- package/lib/common/gmodel/cut-operation-handler.js +2 -1
- package/lib/common/gmodel/cut-operation-handler.js.map +1 -1
- package/lib/common/gmodel/delete-operation-handler.js +2 -1
- package/lib/common/gmodel/delete-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js +2 -1
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js +2 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-diagram-module.js +2 -1
- package/lib/common/gmodel/gmodel-diagram-module.js.map +1 -1
- package/lib/common/gmodel/paste-operation-handler.js +26 -2
- package/lib/common/gmodel/paste-operation-handler.js.map +1 -1
- package/lib/common/gmodel/reconnect-edge-operation-handler.js +2 -1
- package/lib/common/gmodel/reconnect-edge-operation-handler.js.map +1 -1
- package/lib/common/launch/glsp-server-launcher.js +2 -1
- package/lib/common/launch/glsp-server-launcher.js.map +1 -1
- package/lib/common/launch/jsonrpc-server-launcher.js +2 -1
- package/lib/common/launch/jsonrpc-server-launcher.js.map +1 -1
- package/lib/common/operations/compound-operation-handler.js +2 -1
- package/lib/common/operations/compound-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 -2
- package/lib/common/operations/operation-action-handler.js.map +1 -1
- package/lib/common/operations/operation-handler-registry.js +4 -2
- package/lib/common/operations/operation-handler-registry.js.map +1 -1
- package/lib/common/operations/operation-handler.js +2 -1
- 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 -10
- package/lib/common/protocol/glsp-server.js.map +1 -1
- package/lib/common/session/client-session-factory.js +5 -4
- package/lib/common/session/client-session-factory.js.map +1 -1
- package/lib/common/session/client-session-manager.js +2 -1
- package/lib/common/session/client-session-manager.js.map +1 -1
- package/lib/common/utils/console-logger.js +2 -1
- package/lib/common/utils/console-logger.js.map +1 -1
- package/lib/common/utils/logger.js +2 -1
- 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 -2
- 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 -3
- 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 -1
- 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 -3
- package/lib/node/launch/socket-server-launcher.js.map +1 -1
- package/lib/node/launch/websocket-server-launcher.js +27 -3
- package/lib/node/launch/websocket-server-launcher.js.map +1 -1
- package/package.json +3 -4
- 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/client-session-module.ts +17 -10
- package/src/common/di/diagram-module.ts +6 -71
- package/src/common/di/server-module.ts +0 -1
- package/src/common/features/model/model-submission-handler.ts +50 -5
- package/src/common/features/model/request-model-action-handler.ts +4 -4
- 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/promise-queue.ts +4 -5
- package/src/node/abstract-json-model-storage.ts +8 -2
- package/src/node/launch/cli-parser.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-bounds-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/layout/computed-bounds-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAAoF;AACpF,yCAA+C;AAE/C,yDAA4F;AAC5F,sDAAkD;AAClD,gFAA2E;AAE3E;;;;GAIG;AAEI,IAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"computed-bounds-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/layout/computed-bounds-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAAoF;AACpF,yCAA+C;AAE/C,yDAA4F;AAC5F,sDAAkD;AAClD,gFAA2E;AAE3E;;;;GAIG;AAEI,IAAM,2BAA2B,GAAjC,MAAM,2BAA2B;IAAjC;QAOH,gBAAW,GAAG,CAAC,+BAAoB,CAAC,IAAI,CAAC,CAAC;IAmB9C,CAAC;IAlBG,OAAO,CAAC,MAA4B;QAChC,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACnC,IAAI,MAAM,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ,EAAE;YACpC,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAChC,OAAO,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,CAAC;SACvD;QAED,OAAO,EAAE,CAAC;IACd,CAAC;IAES,WAAW,CAAC,IAAgB,EAAE,MAA4B;;QAChE,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QACpC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,IAAA,mCAAqB,EAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QACtE,CAAC,MAAA,MAAM,CAAC,UAAU,mCAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,IAAA,4BAAc,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC;QACjF,CAAC,MAAA,MAAM,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,IAAA,wBAAU,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC;IACrE,CAAC;CAGJ,CAAA;AA1BY,kEAA2B;AAE1B;IADT,IAAA,kBAAM,EAAC,iDAAsB,CAAC;8BACF,iDAAsB;sEAAC;AAG1C;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;+DACc;sCALxB,2BAA2B;IADvC,IAAA,sBAAU,GAAE;GACA,2BAA2B,CA0BvC"}
|
|
@@ -38,7 +38,7 @@ const layout_engine_1 = require("./layout-engine");
|
|
|
38
38
|
* if the server is configured for manual layouting. Changes are stored transient in the graphical model and are not
|
|
39
39
|
* persisted in the source model.
|
|
40
40
|
*/
|
|
41
|
-
let LayoutOperationHandler =
|
|
41
|
+
let LayoutOperationHandler = class LayoutOperationHandler extends operation_handler_1.OperationHandler {
|
|
42
42
|
constructor() {
|
|
43
43
|
super(...arguments);
|
|
44
44
|
this.operationType = protocol_1.LayoutOperation.KIND;
|
|
@@ -58,6 +58,7 @@ let LayoutOperationHandler = exports.LayoutOperationHandler = class LayoutOperat
|
|
|
58
58
|
await ((_a = this.layoutEngine) === null || _a === void 0 ? void 0 : _a.layout());
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
+
exports.LayoutOperationHandler = LayoutOperationHandler;
|
|
61
62
|
__decorate([
|
|
62
63
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
63
64
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-operation-handler.js","sourceRoot":"","sources":["../../../../src/common/features/layout/layout-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkF;AAClF,yCAAyD;AAEzD,uEAAyE;AACzE,+EAA6F;AAC7F,0EAAsE;AACtE,+CAA4C;AAC5C,kEAA8D;AAC9D,mDAA+C;AAE/C;;;;GAIG;AAEI,IAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"layout-operation-handler.js","sourceRoot":"","sources":["../../../../src/common/features/layout/layout-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkF;AAClF,yCAAyD;AAEzD,uEAAyE;AACzE,+EAA6F;AAC7F,0EAAsE;AACtE,+CAA4C;AAC5C,kEAA8D;AAC9D,mDAA+C;AAE/C;;;;GAIG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oCAAgB;IAArD;;QAcM,kBAAa,GAAG,0BAAe,CAAC,IAAI,CAAC;IAgBlD,CAAC;IAdG,aAAa,CAAC,SAA0B;QACpC,IAAI,IAAI,CAAC,oBAAoB,CAAC,UAAU,KAAK,wCAAgB,CAAC,MAAM,EAAE;YAClE,OAAO,SAAS,CAAC;SACpB;QACD,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACpB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;YACpF,OAAO,SAAS,CAAC;SACpB;QACD,OAAO,IAAI,0CAAsB,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IAChH,CAAC;IAES,KAAK,CAAC,gBAAgB,CAAC,UAAqB;;QAClD,MAAM,CAAA,MAAA,IAAI,CAAC,YAAY,0CAAE,MAAM,EAAE,CAAA,CAAC;IACtC,CAAC;CACJ,CAAA;AA9BY,wDAAsB;AAErB;IADT,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACG,eAAM;sDAAC;AAIf;IAFT,IAAA,kBAAM,EAAC,4BAAY,CAAC;IACpB,IAAA,oBAAQ,GAAE;;4DAC2B;AAG5B;IADT,IAAA,kBAAM,EAAC,4CAAoB,CAAC;;oEACwB;AAG3C;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;0DACc;iCAZ9B,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CA8BlC"}
|
|
@@ -27,11 +27,12 @@ exports.GModelFactory = Symbol('GModelFactory');
|
|
|
27
27
|
/**
|
|
28
28
|
* GModelFactory to be used if the graph model is already available from the model source.
|
|
29
29
|
*/
|
|
30
|
-
let GModelFactoryNullImpl =
|
|
30
|
+
let GModelFactoryNullImpl = class GModelFactoryNullImpl {
|
|
31
31
|
createModel() {
|
|
32
32
|
// no-op
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
+
exports.GModelFactoryNullImpl = GModelFactoryNullImpl;
|
|
35
36
|
exports.GModelFactoryNullImpl = GModelFactoryNullImpl = __decorate([
|
|
36
37
|
(0, inversify_1.injectable)()
|
|
37
38
|
], GModelFactoryNullImpl);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmodel-factory.js","sourceRoot":"","sources":["../../../../src/common/features/model/gmodel-factory.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AAE1B,QAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAkCrD;;GAEG;AAEI,IAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"gmodel-factory.js","sourceRoot":"","sources":["../../../../src/common/features/model/gmodel-factory.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AAE1B,QAAA,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AAkCrD;;GAEG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAC9B,WAAW;QACP,QAAQ;IACZ,CAAC;CACJ,CAAA;AAJY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAIjC"}
|
|
@@ -32,7 +32,7 @@ const glsp_server_error_1 = require("../../utils/glsp-server-error");
|
|
|
32
32
|
* Is used to index all child elements of a {@link GModelRoot} by their id. Offers a set
|
|
33
33
|
* of query methods to retrieve indexed elements.
|
|
34
34
|
*/
|
|
35
|
-
let GModelIndex =
|
|
35
|
+
let GModelIndex = class GModelIndex {
|
|
36
36
|
constructor() {
|
|
37
37
|
this.idToElement = new Map();
|
|
38
38
|
this.typeToElements = new Map();
|
|
@@ -185,6 +185,7 @@ let GModelIndex = exports.GModelIndex = class GModelIndex {
|
|
|
185
185
|
return this._findElement(element.parent, guard);
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
+
exports.GModelIndex = GModelIndex;
|
|
188
189
|
exports.GModelIndex = GModelIndex = __decorate([
|
|
189
190
|
(0, inversify_1.injectable)(),
|
|
190
191
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmodel-index.js","sourceRoot":"","sources":["../../../../src/common/features/model/gmodel-index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAAwG;AAExG,yCAAuC;AACvC,qEAA4E;AAE5E;;;GAGG;AAEI,IAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"gmodel-index.js","sourceRoot":"","sources":["../../../../src/common/features/model/gmodel-index.ts"],"names":[],"mappings":";;;;;;;;;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SAAS,CAAC;SACpB;QACD,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IACpD,CAAC;CACJ,CAAA;AAzKY,kCAAW;sBAAX,WAAW;IADvB,IAAA,sBAAU,GAAE;;GACA,WAAW,CAyKvB"}
|
|
@@ -31,7 +31,7 @@ const inversify_1 = require("inversify");
|
|
|
31
31
|
const diagram_configuration_1 = require("../../diagram/diagram-configuration");
|
|
32
32
|
const glsp_server_error_1 = require("../../utils/glsp-server-error");
|
|
33
33
|
exports.GModelSerializer = Symbol('GModelSerializer');
|
|
34
|
-
let DefaultGModelSerializer =
|
|
34
|
+
let DefaultGModelSerializer = class DefaultGModelSerializer {
|
|
35
35
|
constructor() {
|
|
36
36
|
this.reservedKeys = ['children', 'parent', 'index', 'source', 'target'];
|
|
37
37
|
}
|
|
@@ -132,6 +132,7 @@ let DefaultGModelSerializer = exports.DefaultGModelSerializer = class DefaultGMo
|
|
|
132
132
|
return false;
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
+
exports.DefaultGModelSerializer = DefaultGModelSerializer;
|
|
135
136
|
__decorate([
|
|
136
137
|
(0, inversify_1.inject)(diagram_configuration_1.DiagramConfiguration),
|
|
137
138
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gmodel-serializer.js","sourceRoot":"","sources":["../../../../src/common/features/model/gmodel-serializer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,6HAA6H;AAC7H,+CAAiI;AAEjI,yCAA+C;AAC/C,+EAA2E;AAC3E,qEAAgE;AAEnD,QAAA,gBAAgB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAyCpD,IAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"gmodel-serializer.js","sourceRoot":"","sources":["../../../../src/common/features/model/gmodel-serializer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;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AAO,CAAC;QAClB,GAAG;YACC,MAAM,UAAU,GAAG,MAAM,CAAC,wBAAwB,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC;YACtE,IAAI,UAAU,KAAK,SAAS,EAAE;gBAC1B,OAAO,UAAU,CAAC,GAAG,KAAK,SAAS,CAAC;aACvC;YACD,GAAG,GAAG,MAAM,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC;SACpC,QAAQ,GAAG,EAAE;QACd,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AA/GY,0DAAuB;AACQ;IAAvC,IAAA,kBAAM,EAAC,4CAAoB,CAAC;;qEAAsD;kCAD1E,uBAAuB;IADnC,IAAA,sBAAU,GAAE;GACA,uBAAuB,CA+GnC"}
|
|
@@ -17,7 +17,7 @@ const gmodel_index_1 = require("./gmodel-index");
|
|
|
17
17
|
const gmodel_serializer_1 = require("./gmodel-serializer");
|
|
18
18
|
exports.ModelState = Symbol('ModelState');
|
|
19
19
|
exports.SOURCE_URI_ARG = 'sourceUri';
|
|
20
|
-
let DefaultModelState =
|
|
20
|
+
let DefaultModelState = class DefaultModelState {
|
|
21
21
|
constructor() {
|
|
22
22
|
this.properties = new Map();
|
|
23
23
|
this.editMode = protocol_1.EditMode.EDITABLE;
|
|
@@ -55,6 +55,7 @@ let DefaultModelState = exports.DefaultModelState = class DefaultModelState {
|
|
|
55
55
|
this.index.indexRoot(newRoot);
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
+
exports.DefaultModelState = DefaultModelState;
|
|
58
59
|
__decorate([
|
|
59
60
|
(0, inversify_1.inject)(gmodel_index_1.GModelIndex),
|
|
60
61
|
__metadata("design:type", gmodel_index_1.GModelIndex)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-state.js","sourceRoot":"","sources":["../../../../src/common/features/model/model-state.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAAkD;AAClD,yCAA+C;AAC/C,sEAAwD;AACxD,iDAA6C;A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;IACpC,CAAC;IAED,KAAK,CAAC,GAAW;QACb,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,IAAI,UAAU;QACV,OAAO,IAAI,CAAC,QAAQ,KAAK,mBAAQ,CAAC,QAAQ,CAAC;IAC/C,CAAC;IAED,IAAW,IAAI;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED,IAAc,IAAI,CAAC,IAAgB;QAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,UAAU,CAAC,OAAmB;QAC1B,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC;QACpB,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;CACJ,CAAA;AAxDY,8CAAiB;AAEjB;IADR,IAAA,kBAAM,EAAC,0BAAW,CAAC;8BACJ,0BAAW;gDAAC;AAGlB;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;qDACc;AAG9B;IADR,IAAA,kBAAM,EAAC,8BAAQ,CAAC;;mDACS;4BARjB,iBAAiB;IAD7B,IAAA,sBAAU,GAAE;GACA,iBAAiB,CAwD7B"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { GModelRootSchema } from '@eclipse-glsp/graph';
|
|
17
|
-
import { Action, DirtyStateChangeReason, MaybePromise } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { Action, DirtyStateChangeReason, MaybePromise, RequestModelAction, SetModelAction } from '@eclipse-glsp/protocol';
|
|
18
18
|
import { CommandStack } from '../../command/command-stack';
|
|
19
19
|
import { DiagramConfiguration } from '../../diagram/diagram-configuration';
|
|
20
20
|
import { LayoutEngine } from '../layout/layout-engine';
|
|
@@ -22,6 +22,15 @@ import { ModelValidator } from '../validation/model-validator';
|
|
|
22
22
|
import { GModelFactory } from './gmodel-factory';
|
|
23
23
|
import { GModelSerializer } from './gmodel-serializer';
|
|
24
24
|
import { ModelState } from './model-state';
|
|
25
|
+
/**
|
|
26
|
+
* Helper class that provides utility methods to handle model updates i.e.
|
|
27
|
+
* submit a new model to the client. In addition, to the core model update action this class
|
|
28
|
+
* also takes care of related behavior like dirty state handling, validation and client/server side layouting.
|
|
29
|
+
* Note that the submissions handler is only responsible for deriving the set of actions that comprise a model update
|
|
30
|
+
* but does not actually dispatch them. The returned actions should be either manually dispatched
|
|
31
|
+
* to the `ActionDispatcher`, or simply returned as the result of an
|
|
32
|
+
* `ActionHandler.execute` method.
|
|
33
|
+
*/
|
|
25
34
|
export declare class ModelSubmissionHandler {
|
|
26
35
|
protected diagramConfiguration: DiagramConfiguration;
|
|
27
36
|
protected serializer: GModelSerializer;
|
|
@@ -30,8 +39,24 @@ export declare class ModelSubmissionHandler {
|
|
|
30
39
|
protected layoutEngine: LayoutEngine;
|
|
31
40
|
protected commandStack: CommandStack;
|
|
32
41
|
protected validator?: ModelValidator;
|
|
42
|
+
protected requestModelAction?: RequestModelAction;
|
|
33
43
|
/**
|
|
34
|
-
* Returns a list of actions to
|
|
44
|
+
* Returns a list of actions to submit the initial revision of the client-side model, based on the injected
|
|
45
|
+
* {@link GModelState}. Typically this method is invoked by the {@link RequestModelActionHandler} when the diagram
|
|
46
|
+
* is (re)loaded.
|
|
47
|
+
* <p>
|
|
48
|
+
* These actions are not processed by this {@link ModelSubmissionHandler}, but should be either manually dispatched
|
|
49
|
+
* to the {@link ActionDispatcher}, or simply returned as the result of an
|
|
50
|
+
* {@link ActionHandler#execute(Action)} method.
|
|
51
|
+
* </p>
|
|
52
|
+
*
|
|
53
|
+
* @param requestAction The {@link RequestModelAction} that triggere the initial model update
|
|
54
|
+
* @return A list of actions to be processed in order to submit the intial model.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
submitInitialModel(requestAction: RequestModelAction): MaybePromise<Action[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns a list of actions to update the client-side model, based on the injected {@link ModelState}
|
|
35
60
|
*
|
|
36
61
|
* These actions are not processed by this {@link ModelSubmissionHandler}, but should be either manually dispatched
|
|
37
62
|
* to the `ActionDispatcher`, or simply returned as the result of an `ActionHandler.execute()` method.
|
|
@@ -55,6 +80,7 @@ export declare class ModelSubmissionHandler {
|
|
|
55
80
|
* @returns A list of actions to be processed in order to submit the model.
|
|
56
81
|
*/
|
|
57
82
|
submitModelDirectly(reason?: DirtyStateChangeReason): Promise<Action[]>;
|
|
83
|
+
protected createSetModeAction(newRoot: GModelRootSchema): SetModelAction;
|
|
58
84
|
protected serializeGModel(): GModelRootSchema;
|
|
59
85
|
}
|
|
60
86
|
//# sourceMappingURL=model-submission-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-submission-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/model/model-submission-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACH,MAAM,EACN,sBAAsB,EAEtB,YAAY,
|
|
1
|
+
{"version":3,"file":"model-submission-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/model/model-submission-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACH,MAAM,EACN,sBAAsB,EAEtB,YAAY,EAEZ,kBAAkB,EAGlB,cAAc,EAEjB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAoB,MAAM,qCAAqC,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;GAQG;AACH,qBACa,sBAAsB;IAE/B,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAGrD,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IAGvC,SAAS,CAAC,YAAY,EAAE,aAAa,CAAC;IAGtC,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAIjC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAGrC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAIrC,SAAS,CAAC,SAAS,CAAC,EAAE,cAAc,CAAC;IAErC,SAAS,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAElD;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,aAAa,EAAE,kBAAkB,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;IAU7E;;;;;;;;OAQG;IACH,WAAW,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;IAapE;;;;;;;;;;;;;OAaG;IACG,mBAAmB,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAsB7E,SAAS,CAAC,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,GAAG,cAAc;IAOxE,SAAS,CAAC,eAAe,IAAI,gBAAgB;CAGhD"}
|
|
@@ -19,9 +19,41 @@ const model_validator_1 = require("../validation/model-validator");
|
|
|
19
19
|
const gmodel_factory_1 = require("./gmodel-factory");
|
|
20
20
|
const gmodel_serializer_1 = require("./gmodel-serializer");
|
|
21
21
|
const model_state_1 = require("./model-state");
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Helper class that provides utility methods to handle model updates i.e.
|
|
24
|
+
* submit a new model to the client. In addition, to the core model update action this class
|
|
25
|
+
* also takes care of related behavior like dirty state handling, validation and client/server side layouting.
|
|
26
|
+
* Note that the submissions handler is only responsible for deriving the set of actions that comprise a model update
|
|
27
|
+
* but does not actually dispatch them. The returned actions should be either manually dispatched
|
|
28
|
+
* to the `ActionDispatcher`, or simply returned as the result of an
|
|
29
|
+
* `ActionHandler.execute` method.
|
|
30
|
+
*/
|
|
31
|
+
let ModelSubmissionHandler = class ModelSubmissionHandler {
|
|
23
32
|
/**
|
|
24
|
-
* Returns a list of actions to
|
|
33
|
+
* Returns a list of actions to submit the initial revision of the client-side model, based on the injected
|
|
34
|
+
* {@link GModelState}. Typically this method is invoked by the {@link RequestModelActionHandler} when the diagram
|
|
35
|
+
* is (re)loaded.
|
|
36
|
+
* <p>
|
|
37
|
+
* These actions are not processed by this {@link ModelSubmissionHandler}, but should be either manually dispatched
|
|
38
|
+
* to the {@link ActionDispatcher}, or simply returned as the result of an
|
|
39
|
+
* {@link ActionHandler#execute(Action)} method.
|
|
40
|
+
* </p>
|
|
41
|
+
*
|
|
42
|
+
* @param requestAction The {@link RequestModelAction} that triggere the initial model update
|
|
43
|
+
* @return A list of actions to be processed in order to submit the intial model.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
submitInitialModel(requestAction) {
|
|
47
|
+
/*
|
|
48
|
+
* In the default update action flow a `RequestModelAction` does not directly trigger a `SetModelAction` response
|
|
49
|
+
* (RequestModelAction (C) -> RequestBoundsAction (S) -> ComputedBoundsAction (C) -> SetModelACtion (S)
|
|
50
|
+
* Therefore we temporarily store the action later retrival
|
|
51
|
+
*/
|
|
52
|
+
this.requestModelAction = requestAction;
|
|
53
|
+
return this.submitModel();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns a list of actions to update the client-side model, based on the injected {@link ModelState}
|
|
25
57
|
*
|
|
26
58
|
* These actions are not processed by this {@link ModelSubmissionHandler}, but should be either manually dispatched
|
|
27
59
|
* to the `ActionDispatcher`, or simply returned as the result of an `ActionHandler.execute()` method.
|
|
@@ -30,14 +62,14 @@ let ModelSubmissionHandler = exports.ModelSubmissionHandler = class ModelSubmiss
|
|
|
30
62
|
* @returns A list of actions to be processed in order to submit the model.
|
|
31
63
|
*/
|
|
32
64
|
submitModel(reason) {
|
|
33
|
-
var _a;
|
|
34
65
|
this.modelFactory.createModel();
|
|
35
|
-
|
|
66
|
+
const revision = this.requestModelAction ? 0 : this.modelState.root.revision + 1;
|
|
67
|
+
this.modelState.root.revision = revision;
|
|
36
68
|
const root = this.serializeGModel();
|
|
37
69
|
if (this.diagramConfiguration.needsClientLayout) {
|
|
38
70
|
return [protocol_1.RequestBoundsAction.create(root), protocol_1.SetDirtyStateAction.create(this.commandStack.isDirty, { reason })];
|
|
39
71
|
}
|
|
40
|
-
return
|
|
72
|
+
return this.submitModelDirectly(reason);
|
|
41
73
|
}
|
|
42
74
|
/**
|
|
43
75
|
* Returns a list of actions to directly update the client-side model without any server- or client-side layouting.
|
|
@@ -59,8 +91,8 @@ let ModelSubmissionHandler = exports.ModelSubmissionHandler = class ModelSubmiss
|
|
|
59
91
|
await this.layoutEngine.layout();
|
|
60
92
|
}
|
|
61
93
|
const result = [];
|
|
62
|
-
result.push(
|
|
63
|
-
?
|
|
94
|
+
result.push(this.requestModelAction
|
|
95
|
+
? this.createSetModeAction(root)
|
|
64
96
|
: protocol_1.UpdateModelAction.create(root, { animate: this.diagramConfiguration.animatedUpdate }));
|
|
65
97
|
if (!this.diagramConfiguration.needsClientLayout) {
|
|
66
98
|
result.push(protocol_1.SetDirtyStateAction.create(this.commandStack.isDirty, { reason }));
|
|
@@ -71,10 +103,18 @@ let ModelSubmissionHandler = exports.ModelSubmissionHandler = class ModelSubmiss
|
|
|
71
103
|
}
|
|
72
104
|
return result;
|
|
73
105
|
}
|
|
106
|
+
createSetModeAction(newRoot) {
|
|
107
|
+
var _a, _b;
|
|
108
|
+
const responseId = (_b = (_a = this.requestModelAction) === null || _a === void 0 ? void 0 : _a.requestId) !== null && _b !== void 0 ? _b : '';
|
|
109
|
+
const response = protocol_1.SetModelAction.create(newRoot, { responseId });
|
|
110
|
+
this.requestModelAction = undefined;
|
|
111
|
+
return response;
|
|
112
|
+
}
|
|
74
113
|
serializeGModel() {
|
|
75
114
|
return this.serializer.createSchema(this.modelState.root);
|
|
76
115
|
}
|
|
77
116
|
};
|
|
117
|
+
exports.ModelSubmissionHandler = ModelSubmissionHandler;
|
|
78
118
|
__decorate([
|
|
79
119
|
(0, inversify_1.inject)(diagram_configuration_1.DiagramConfiguration),
|
|
80
120
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-submission-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/model-submission-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"model-submission-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/model-submission-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAWgC;AAEhC,yCAAyD;AACzD,+DAA2D;AAC3D,+EAA6F;AAC7F,2DAAuD;AACvD,mEAA+D;AAC/D,qDAAiD;AACjD,2DAAuD;AACvD,+CAA2C;AAE3C;;;;;;;;GAQG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IA0B/B;;;;;;;;;;;;;OAaG;IACH,kBAAkB,CAAC,aAAiC;QAChD;;;;WAIG;QACH,IAAI,CAAC,kBAAkB,GAAG,aAAa,CAAC;QACxC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC9B,CAAC;IAED;;;;;;;;OAQG;IACH,WAAW,CAAC,MAA+B;QACvC,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC;QAEhC,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CA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AsHlC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-model-action-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/model/request-model-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"request-model-action-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/model/request-model-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAgB,MAAM,wBAAwB,CAAC;AAElF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,qBACa,yBAA0B,YAAW,aAAa;IAC3D,WAAW,WAA6B;IAGxC,OAAO,CAAC,MAAM,CAAS;IAGvB,SAAS,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IAGjD,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAG7C,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAGjC,SAAS,CAAC,iBAAiB,EAAE,sBAAsB,CAAC;IAGpD,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAErC,OAAO,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;cAkB5C,eAAe,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;IAW1E,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe;IAK9D,SAAS,CAAC,0BAA0B,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;CAIvE"}
|
|
@@ -34,7 +34,7 @@ const progress_service_1 = require("../progress/progress-service");
|
|
|
34
34
|
const model_state_1 = require("./model-state");
|
|
35
35
|
const model_submission_handler_1 = require("./model-submission-handler");
|
|
36
36
|
const source_model_storage_1 = require("./source-model-storage");
|
|
37
|
-
let RequestModelActionHandler =
|
|
37
|
+
let RequestModelActionHandler = class RequestModelActionHandler {
|
|
38
38
|
constructor() {
|
|
39
39
|
this.actionKinds = [protocol_1.RequestModelAction.KIND];
|
|
40
40
|
}
|
|
@@ -51,7 +51,7 @@ let RequestModelActionHandler = exports.RequestModelActionHandler = class Reques
|
|
|
51
51
|
await this.sourceModelStorage.loadSourceModel(action);
|
|
52
52
|
}
|
|
53
53
|
this.reportModelLoadingFinished(progress);
|
|
54
|
-
return this.submissionHandler.
|
|
54
|
+
return this.submissionHandler.submitInitialModel(action);
|
|
55
55
|
}
|
|
56
56
|
async handleReconnect(action) {
|
|
57
57
|
var _a;
|
|
@@ -66,14 +66,15 @@ let RequestModelActionHandler = exports.RequestModelActionHandler = class Reques
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
reportModelLoading(message) {
|
|
69
|
-
this.actionDispatcher.dispatch(protocol_1.
|
|
69
|
+
this.actionDispatcher.dispatch(protocol_1.StatusAction.create(message, { severity: 'INFO' }));
|
|
70
70
|
return this.progressService.start(message);
|
|
71
71
|
}
|
|
72
72
|
reportModelLoadingFinished(monitor) {
|
|
73
|
-
this.actionDispatcher.dispatch(protocol_1.
|
|
73
|
+
this.actionDispatcher.dispatch(protocol_1.StatusAction.create('', { severity: 'NONE' }));
|
|
74
74
|
monitor.end();
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
exports.RequestModelActionHandler = RequestModelActionHandler;
|
|
77
78
|
__decorate([
|
|
78
79
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
79
80
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -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;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C,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CA2DrC"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const command_stack_1 = require("../../command/command-stack");
|
|
31
31
|
const source_model_storage_1 = require("./source-model-storage");
|
|
32
|
-
let SaveModelActionHandler =
|
|
32
|
+
let SaveModelActionHandler = class SaveModelActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.SaveModelAction.KIND];
|
|
35
35
|
}
|
|
@@ -39,6 +39,7 @@ let SaveModelActionHandler = exports.SaveModelActionHandler = class SaveModelAct
|
|
|
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)
|
|
@@ -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,
|
|
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"}
|
|
@@ -32,12 +32,13 @@ const inversify_1 = require("inversify");
|
|
|
32
32
|
const service_identifiers_1 = require("../../di/service-identifiers");
|
|
33
33
|
const registry_1 = require("../../utils/registry");
|
|
34
34
|
exports.NavigationTargetProviderRegistry = Symbol('NavigationTargetProviderRegistry');
|
|
35
|
-
let DefaultNavigationTargetProviderRegistry =
|
|
35
|
+
let DefaultNavigationTargetProviderRegistry = class DefaultNavigationTargetProviderRegistry extends registry_1.Registry {
|
|
36
36
|
constructor(navigationTargetProviders = []) {
|
|
37
37
|
super();
|
|
38
38
|
navigationTargetProviders.forEach(provider => this.register(provider.targetTypeId, provider));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
+
exports.DefaultNavigationTargetProviderRegistry = DefaultNavigationTargetProviderRegistry;
|
|
41
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)()),
|
|
@@ -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;AAO3F,IAAa,uCAAuC,
|
|
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"}
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NavigationTargetResolver = void 0;
|
|
10
10
|
const inversify_1 = require("inversify");
|
|
11
|
-
let NavigationTargetResolver =
|
|
11
|
+
let NavigationTargetResolver = class NavigationTargetResolver {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.INFO = 'info';
|
|
14
14
|
this.WARNING = 'warning';
|
|
@@ -42,6 +42,7 @@ let NavigationTargetResolver = exports.NavigationTargetResolver = class Navigati
|
|
|
42
42
|
args[this.ERROR] = message;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
exports.NavigationTargetResolver = NavigationTargetResolver;
|
|
45
46
|
exports.NavigationTargetResolver = NavigationTargetResolver = __decorate([
|
|
46
47
|
(0, inversify_1.injectable)()
|
|
47
48
|
], NavigationTargetResolver);
|
|
@@ -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,
|
|
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"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const inject_1 = require("inversify/lib/annotation/inject");
|
|
31
31
|
const navigation_target_provider_registry_1 = require("./navigation-target-provider-registry");
|
|
32
|
-
let RequestNavigationTargetsActionHandler =
|
|
32
|
+
let RequestNavigationTargetsActionHandler = class RequestNavigationTargetsActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.RequestNavigationTargetsAction.KIND];
|
|
35
35
|
}
|
|
@@ -44,6 +44,7 @@ let RequestNavigationTargetsActionHandler = exports.RequestNavigationTargetsActi
|
|
|
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)
|
|
@@ -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,
|
|
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"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const logger_1 = require("../../utils/logger");
|
|
31
31
|
const navigation_target_resolver_1 = require("./navigation-target-resolver");
|
|
32
|
-
let ResolveNavigationTargetsActionHandler =
|
|
32
|
+
let ResolveNavigationTargetsActionHandler = class ResolveNavigationTargetsActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.ResolveNavigationTargetAction.KIND];
|
|
35
35
|
}
|
|
@@ -43,6 +43,7 @@ let ResolveNavigationTargetsActionHandler = exports.ResolveNavigationTargetsActi
|
|
|
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)
|
|
@@ -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,
|
|
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"}
|
|
@@ -32,7 +32,7 @@ const logger_1 = require("../../utils/logger");
|
|
|
32
32
|
const gmodel_serializer_1 = require("../model/gmodel-serializer");
|
|
33
33
|
const model_state_1 = require("../model/model-state");
|
|
34
34
|
const popup_model_factory_1 = require("./popup-model-factory");
|
|
35
|
-
let RequestPopupModelActionHandler =
|
|
35
|
+
let RequestPopupModelActionHandler = class RequestPopupModelActionHandler {
|
|
36
36
|
constructor() {
|
|
37
37
|
this.actionKinds = [protocol_1.RequestPopupModelAction.KIND];
|
|
38
38
|
}
|
|
@@ -53,6 +53,7 @@ let RequestPopupModelActionHandler = exports.RequestPopupModelActionHandler = cl
|
|
|
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)
|
|
@@ -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,
|
|
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"}
|
|
@@ -1,10 +1,33 @@
|
|
|
1
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
|
+
});
|
|
2
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
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;
|
|
6
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
|
+
};
|
|
8
31
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
32
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
33
|
};
|
|
@@ -27,10 +50,10 @@ exports.DefaultProgressService = exports.ProgressService = void 0;
|
|
|
27
50
|
********************************************************************************/
|
|
28
51
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
52
|
const inversify_1 = require("inversify");
|
|
30
|
-
const uuid = require("uuid");
|
|
53
|
+
const uuid = __importStar(require("uuid"));
|
|
31
54
|
const action_dispatcher_1 = require("../../actions/action-dispatcher");
|
|
32
55
|
exports.ProgressService = Symbol('ProgressService');
|
|
33
|
-
let DefaultProgressService =
|
|
56
|
+
let DefaultProgressService = class DefaultProgressService {
|
|
34
57
|
start(title, options) {
|
|
35
58
|
const progressId = uuid.v4();
|
|
36
59
|
this.actionDispatcher.dispatch(protocol_1.StartProgressAction.create(Object.assign({ progressId, title }, options)));
|
|
@@ -40,6 +63,7 @@ let DefaultProgressService = exports.DefaultProgressService = class DefaultProgr
|
|
|
40
63
|
};
|
|
41
64
|
}
|
|
42
65
|
};
|
|
66
|
+
exports.DefaultProgressService = DefaultProgressService;
|
|
43
67
|
__decorate([
|
|
44
68
|
(0, inversify_1.inject)(action_dispatcher_1.ActionDispatcher),
|
|
45
69
|
__metadata("design:type", Object)
|