@eclipse-glsp/server 1.1.0-next.f0fc2cf.63 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/launch/worker-server-launcher.js +2 -1
- 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 +9 -15
- package/lib/common/command/recording-command.d.ts.map +1 -1
- package/lib/common/command/recording-command.js +12 -26
- 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 +20 -1
- package/lib/common/di/diagram-module.d.ts.map +1 -1
- package/lib/common/di/diagram-module.js +17 -56
- 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/features/clipboard/request-clipboard-data-action-handler.d.ts.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.d.ts +10 -10
- package/lib/common/features/model/gmodel-serializer.d.ts.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.d.ts.map +1 -1
- package/lib/common/features/model/model-state.js +5 -1
- package/lib/common/features/model/model-state.js.map +1 -1
- package/lib/common/features/model/model-submission-handler.d.ts +28 -3
- package/lib/common/features/model/model-submission-handler.d.ts.map +1 -1
- package/lib/common/features/model/model-submission-handler.js +63 -8
- 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 +2 -1
- package/lib/common/features/progress/progress-service.js.map +1 -1
- package/lib/common/features/type-hints/edge-creation-checker.d.ts +42 -0
- package/lib/common/features/type-hints/edge-creation-checker.d.ts.map +1 -0
- package/lib/common/features/type-hints/edge-creation-checker.js +20 -0
- package/lib/common/features/type-hints/edge-creation-checker.js.map +1 -0
- package/lib/common/features/type-hints/request-check-edge-action-handler.d.ts +29 -0
- package/lib/common/features/type-hints/request-check-edge-action-handler.d.ts.map +1 -0
- package/lib/common/features/type-hints/request-check-edge-action-handler.js +72 -0
- package/lib/common/features/type-hints/request-check-edge-action-handler.js.map +1 -0
- package/lib/common/{diagram → features/type-hints}/request-type-hints-action-handler.d.ts +2 -3
- package/lib/common/features/type-hints/request-type-hints-action-handler.d.ts.map +1 -0
- package/lib/common/{diagram → features/type-hints}/request-type-hints-action-handler.js +3 -3
- package/lib/common/features/type-hints/request-type-hints-action-handler.js.map +1 -0
- 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.d.ts.map +1 -1
- package/lib/common/gmodel/cut-operation-handler.js +7 -4
- package/lib/common/gmodel/cut-operation-handler.js.map +1 -1
- package/lib/common/gmodel/delete-operation-handler.d.ts +1 -1
- package/lib/common/gmodel/delete-operation-handler.d.ts.map +1 -1
- package/lib/common/gmodel/delete-operation-handler.js +7 -6
- package/lib/common/gmodel/delete-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.d.ts +3 -3
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.d.ts.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.d.ts +3 -3
- package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts.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.d.ts.map +1 -1
- package/lib/common/gmodel/paste-operation-handler.js +2 -1
- 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/index.d.ts +3 -1
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +3 -1
- package/lib/common/index.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.d.ts +5 -0
- package/lib/common/operations/compound-operation-handler.d.ts.map +1 -1
- package/lib/common/operations/compound-operation-handler.js +8 -2
- package/lib/common/operations/compound-operation-handler.js.map +1 -1
- package/lib/common/operations/create-operation-handler.d.ts +19 -5
- package/lib/common/operations/create-operation-handler.d.ts.map +1 -1
- package/lib/common/operations/create-operation-handler.js +2 -1
- package/lib/common/operations/create-operation-handler.js.map +1 -1
- package/lib/common/operations/json-operation-handler.d.ts +94 -0
- package/lib/common/operations/json-operation-handler.d.ts.map +1 -0
- package/lib/common/operations/json-operation-handler.js +120 -0
- package/lib/common/operations/json-operation-handler.js.map +1 -0
- 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.d.ts +1 -9
- package/lib/common/operations/operation-handler-registry.d.ts.map +1 -1
- package/lib/common/operations/operation-handler-registry.js +4 -12
- package/lib/common/operations/operation-handler-registry.js.map +1 -1
- package/lib/common/operations/operation-handler.d.ts +2 -2
- package/lib/common/operations/operation-handler.d.ts.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.d.ts +3 -1
- package/lib/common/utils/registry.d.ts.map +1 -1
- package/lib/common/utils/registry.js +15 -4
- package/lib/common/utils/registry.js.map +1 -1
- package/lib/node/abstract-json-model-storage.js +2 -1
- package/lib/node/abstract-json-model-storage.js.map +1 -1
- package/lib/node/gmodel/gmodel-storage.d.ts.map +1 -1
- package/lib/node/gmodel/gmodel-storage.js +4 -2
- package/lib/node/gmodel/gmodel-storage.js.map +1 -1
- package/lib/node/launch/socket-server-launcher.js +2 -1
- package/lib/node/launch/socket-server-launcher.js.map +1 -1
- package/lib/node/launch/websocket-server-launcher.js +2 -1
- package/lib/node/launch/websocket-server-launcher.js.map +1 -1
- package/package.json +4 -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.spec.ts +15 -5
- package/src/common/command/recording-command.ts +16 -27
- package/src/common/di/client-session-module.ts +17 -10
- package/src/common/di/diagram-module.ts +23 -75
- package/src/common/di/server-module.ts +0 -1
- package/src/common/features/clipboard/request-clipboard-data-action-handler.ts +3 -3
- package/src/common/features/model/gmodel-serializer.ts +11 -11
- package/src/common/features/model/model-state.ts +3 -0
- package/src/common/features/model/model-submission-handler.ts +52 -7
- package/src/common/features/model/request-model-action-handler.ts +4 -4
- package/src/common/features/type-hints/edge-creation-checker.ts +44 -0
- package/src/common/features/type-hints/request-check-edge-action-handler.ts +62 -0
- package/src/common/{diagram → features/type-hints}/request-type-hints-action-handler.spec.ts +2 -2
- package/src/common/{diagram → features/type-hints}/request-type-hints-action-handler.ts +2 -3
- package/src/common/gmodel/cut-operation-handler.ts +5 -3
- package/src/common/gmodel/delete-operation-handler.ts +6 -5
- package/src/common/gmodel/gmodel-create-edge-operation-handler.ts +3 -3
- package/src/common/gmodel/gmodel-create-node-operation-handler.ts +3 -3
- package/src/common/gmodel/paste-operation-handler.ts +2 -2
- package/src/common/index.ts +3 -1
- package/src/common/operations/compound-operation-handler.ts +6 -1
- package/src/common/operations/create-operation-handler.ts +22 -5
- package/src/common/operations/json-operation-handler.ts +147 -0
- package/src/common/operations/operation-action-handler.ts +2 -2
- package/src/common/operations/operation-handler-registry.ts +1 -12
- package/src/common/operations/operation-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/common/utils/registry.spec.ts +3 -1
- package/src/common/utils/registry.ts +8 -3
- package/src/node/gmodel/gmodel-storage.ts +3 -3
- package/lib/common/diagram/request-type-hints-action-handler.d.ts.map +0 -1
- package/lib/common/diagram/request-type-hints-action-handler.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recording-command.js","sourceRoot":"","sources":["../../../src/common/command/recording-command.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;
|
|
1
|
+
{"version":3,"file":"recording-command.js","sourceRoot":"","sources":["../../../src/common/command/recording-command.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAGlF,6CAA6C;AAI7C;;;GAGG;AACH,MAAsB,wBAAwB;IAI1C,KAAK,CAAC,OAAO;;QACT,MAAM,WAAW,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QAC/D,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvB,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAC5D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;QAC5D,MAAA,IAAI,CAAC,UAAU,qDAAG,UAAU,CAAC,CAAC;IAClC,CAAC;IAcS,UAAU,CAAC,MAAkB,EAAE,KAA4B;QACjE,OAAO,SAAS,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;OAKG;IACO,SAAS,CAAC,MAAkB;QAClC,OAAO,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,KAAK,CAAC,IAAI;;QACN,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC3E,MAAA,IAAI,CAAC,UAAU,qDAAG,MAAM,CAAC,WAAW,CAAC,CAAC;SACzC;IACL,CAAC;IAED,KAAK,CAAC,IAAI;;QACN,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;YAC3E,MAAA,IAAI,CAAC,UAAU,qDAAG,MAAM,CAAC,WAAW,CAAC,CAAC;SACzC;IACL,CAAC;IAED,OAAO;QACH,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;IAChD,CAAC;CAQJ;AA/DD,4DA+DC;AAED;;;GAGG;AACH,MAAa,sBAAuB,SAAQ,wBAA0C;IAClF,YAAsB,UAAsB,EAAY,UAA4B,EAAY,SAAmC;QAC/H,KAAK,EAAE,CAAC;QADU,eAAU,GAAV,UAAU,CAAY;QAAY,eAAU,GAAV,UAAU,CAAkB;QAAY,cAAS,GAAT,SAAS,CAA0B;IAEnI,CAAC;IAES,aAAa;QACnB,OAAO,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;IAEkB,UAAU,CAAC,QAA6B;QACvD,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACrD,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;CACJ;AAbD,wDAaC"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const model_submission_handler_1 = require("../features/model/model-submission-handler");
|
|
31
31
|
const command_stack_1 = require("./command-stack");
|
|
32
|
-
let UndoRedoActionHandler =
|
|
32
|
+
let UndoRedoActionHandler = class UndoRedoActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.UndoAction.KIND, protocol_1.RedoAction.KIND];
|
|
35
35
|
}
|
|
@@ -57,6 +57,7 @@ let UndoRedoActionHandler = exports.UndoRedoActionHandler = class UndoRedoAction
|
|
|
57
57
|
return [];
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
|
+
exports.UndoRedoActionHandler = UndoRedoActionHandler;
|
|
60
61
|
__decorate([
|
|
61
62
|
(0, inversify_1.inject)(command_stack_1.CommandStack),
|
|
62
63
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"undo-redo-action-handler.js","sourceRoot":"","sources":["../../../src/common/command/undo-redo-action-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,qDAAsF;AACtF,yCAA+C;AAE/C,yFAAoF;AACpF,mDAA+C;AAGxC,IAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"undo-redo-action-handler.js","sourceRoot":"","sources":["../../../src/common/command/undo-redo-action-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,qDAAsF;AACtF,yCAA+C;AAE/C,yFAAoF;AACpF,mDAA+C;AAGxC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAA3B;QAOM,gBAAW,GAAG,CAAC,qBAAU,CAAC,IAAI,EAAE,qBAAU,CAAC,IAAI,CAAC,CAAC;IA0B9D,CAAC;IAxBG,OAAO,CAAC,MAAc;QAClB,IAAI,qBAAU,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YACvB,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;SACtB;aAAM,IAAI,qBAAU,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE;YAC9B,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;SACtB;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAES,KAAK,CAAC,IAAI;QAChB,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE;YAC7B,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;SAC1D;QACD,OAAO,EAAE,CAAC;IACd,CAAC;IAES,KAAK,CAAC,IAAI;QAChB,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE;YAC7B,MAAM,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;YAC/B,OAAO,IAAI,CAAC,sBAAsB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;SAC1D;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAjCY,sDAAqB;AAEpB;IADT,IAAA,kBAAM,EAAC,4BAAY,CAAC;;2DACgB;AAG3B;IADT,IAAA,kBAAM,EAAC,iDAAsB,CAAC;8BACG,iDAAsB;qEAAC;gCALhD,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAiCjC"}
|
|
@@ -15,5 +15,13 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { GLSPClientProxy } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { ContainerModule } from 'inversify';
|
|
18
|
-
export
|
|
18
|
+
export interface ClientSessionModuleOptions {
|
|
19
|
+
clientId: string;
|
|
20
|
+
glspClient: GLSPClientProxy;
|
|
21
|
+
clientActionKinds: string[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates the DI module that binds client session specific configuration
|
|
25
|
+
*/
|
|
26
|
+
export declare function createClientSessionModule(options: ClientSessionModuleOptions): ContainerModule;
|
|
19
27
|
//# sourceMappingURL=client-session-module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-session-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/client-session-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"client-session-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/client-session-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAgB,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAG5C,MAAM,WAAW,0BAA0B;IACvC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,eAAe,CAAC;IAC5B,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,0BAA0B,GAAG,eAAe,CAO9F"}
|
|
@@ -19,15 +19,15 @@ exports.createClientSessionModule = void 0;
|
|
|
19
19
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
20
|
const inversify_1 = require("inversify");
|
|
21
21
|
const service_identifiers_1 = require("./service-identifiers");
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
bind(
|
|
22
|
+
/**
|
|
23
|
+
* Creates the DI module that binds client session specific configuration
|
|
24
|
+
*/
|
|
25
|
+
function createClientSessionModule(options) {
|
|
26
|
+
return new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
|
27
|
+
const context = { bind, unbind, isBound, rebind };
|
|
28
|
+
(0, protocol_1.bindOrRebind)(context, service_identifiers_1.ClientId).toConstantValue(options.clientId);
|
|
29
|
+
bind(protocol_1.GLSPClientProxy).toConstantValue(options.glspClient);
|
|
30
|
+
bind(service_identifiers_1.ClientActionKinds).toConstantValue(new Set(options.clientActionKinds));
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
exports.createClientSessionModule = createClientSessionModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-session-module.js","sourceRoot":"","sources":["../../../src/common/di/client-session-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"client-session-module.js","sourceRoot":"","sources":["../../../src/common/di/client-session-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuE;AACvE,yCAA4C;AAC5C,+DAAoE;AAQpE;;GAEG;AACH,SAAgB,yBAAyB,CAAC,OAAmC;IACzE,OAAO,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;QACzD,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;QAClD,IAAA,uBAAY,EAAC,OAAO,EAAE,8BAAQ,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAClE,IAAI,CAAC,0BAAe,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC1D,IAAI,CAAC,uCAAiB,CAAC,CAAC,eAAe,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACP,CAAC;AAPD,8DAOC"}
|
|
@@ -1,7 +1,23 @@
|
|
|
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 { interfaces } from 'inversify';
|
|
2
17
|
import { ActionDispatcher } from '../actions/action-dispatcher';
|
|
3
18
|
import { ActionHandlerConstructor, ActionHandlerFactory } from '../actions/action-handler';
|
|
4
19
|
import { ActionHandlerRegistry } from '../actions/action-handler-registry';
|
|
20
|
+
import { ClientActionForwarder } from '../actions/client-action-handler';
|
|
5
21
|
import { CommandStack } from '../command/command-stack';
|
|
6
22
|
import { DiagramConfiguration } from '../diagram/diagram-configuration';
|
|
7
23
|
import { CommandPaletteActionProvider } from '../features/contextactions/command-palette-action-provider';
|
|
@@ -24,6 +40,7 @@ import { NavigationTargetProviderRegistry } from '../features/navigation/navigat
|
|
|
24
40
|
import { NavigationTargetResolver } from '../features/navigation/navigation-target-resolver';
|
|
25
41
|
import { PopupModelFactory } from '../features/popup/popup-model-factory';
|
|
26
42
|
import { ProgressService } from '../features/progress/progress-service';
|
|
43
|
+
import { EdgeCreationChecker } from '../features/type-hints/edge-creation-checker';
|
|
27
44
|
import { ModelValidator } from '../features/validation/model-validator';
|
|
28
45
|
import { OperationHandlerConstructor, OperationHandlerFactory } from '../operations/operation-handler';
|
|
29
46
|
import { OperationHandlerRegistry } from '../operations/operation-handler-registry';
|
|
@@ -76,6 +93,7 @@ import { InstanceMultiBinding, MultiBinding } from './multi-binding';
|
|
|
76
93
|
* - {@link ClientSessionInitializer} as {@link ClassMultiBinding<ClientSessionInitializer>}
|
|
77
94
|
* - {@link PopupModelFactory} as optional binding
|
|
78
95
|
* - {@link LayoutEngine} as optional binding
|
|
96
|
+
* - {@link EdgeCreationChecker} as optional binding
|
|
79
97
|
*/
|
|
80
98
|
export declare abstract class DiagramModule extends GLSPModule {
|
|
81
99
|
static readonly FALLBACK_CLIENT_ID = "FallbackClientId";
|
|
@@ -86,6 +104,7 @@ export declare abstract class DiagramModule extends GLSPModule {
|
|
|
86
104
|
protected bindDiagramType(): BindingTarget<string>;
|
|
87
105
|
protected bindClientId(): BindingTarget<string>;
|
|
88
106
|
protected bindGModelSerializer(): BindingTarget<GModelSerializer>;
|
|
107
|
+
protected bindClientActionForwarder(): BindingTarget<ClientActionForwarder>;
|
|
89
108
|
protected bindGModelIndex(): BindingTarget<GModelIndex>;
|
|
90
109
|
protected bindActionDispatcher(): BindingTarget<ActionDispatcher>;
|
|
91
110
|
protected bindActionHandlerRegistry(): BindingTarget<ActionHandlerRegistry>;
|
|
@@ -102,7 +121,6 @@ export declare abstract class DiagramModule extends GLSPModule {
|
|
|
102
121
|
protected configureContextActionProviders(binding: MultiBinding<ContextActionsProvider>): void;
|
|
103
122
|
protected configureContextEditValidators(binding: MultiBinding<ContextEditValidator>): void;
|
|
104
123
|
protected configureNavigationTargetProviders(binding: MultiBinding<NavigationTargetProvider>): void;
|
|
105
|
-
protected configureClientActions(binding: InstanceMultiBinding<string>): void;
|
|
106
124
|
protected bindContextActionsProviderRegistry(): BindingTarget<ContextActionsProviderRegistry>;
|
|
107
125
|
protected abstract bindSourceModelStorage(): BindingTarget<SourceModelStorage>;
|
|
108
126
|
/**
|
|
@@ -129,5 +147,6 @@ export declare abstract class DiagramModule extends GLSPModule {
|
|
|
129
147
|
protected bindNavigationTargetResolver(): BindingTarget<NavigationTargetResolver> | undefined;
|
|
130
148
|
protected bindPopupModelFactory(): BindingTarget<PopupModelFactory> | undefined;
|
|
131
149
|
protected bindLayoutEngine(): BindingTarget<LayoutEngine> | undefined;
|
|
150
|
+
protected bindEdgeCreationChecker(): BindingTarget<EdgeCreationChecker> | undefined;
|
|
132
151
|
}
|
|
133
152
|
//# sourceMappingURL=diagram-module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagram-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/diagram-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"diagram-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAA2B,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAC3F,OAAO,EAAE,qBAAqB,EAAoC,MAAM,oCAAoC,CAAC;AAC7G,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,4BAA4B,EAAE,MAAM,4DAA4D,CAAC;AAC1G,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,8DAA8D,CAAC;AAC9G,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAEhG,OAAO,EAAkC,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChI,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EACH,4BAA4B,EAE/B,MAAM,2DAA2D,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAGpF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAA2B,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,O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|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DiagramModule = void 0;
|
|
4
|
-
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
6
|
-
*
|
|
7
|
-
* This program and the accompanying materials are made available under the
|
|
8
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
-
*
|
|
11
|
-
* This Source Code may also be made available under the following Secondary
|
|
12
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
-
* with the GNU Classpath Exception which is available at
|
|
15
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
-
*
|
|
17
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
-
********************************************************************************/
|
|
19
|
-
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
20
4
|
const action_dispatcher_1 = require("../actions/action-dispatcher");
|
|
21
5
|
const action_handler_1 = require("../actions/action-handler");
|
|
22
6
|
const action_handler_registry_1 = require("../actions/action-handler-registry");
|
|
@@ -24,7 +8,6 @@ const client_action_handler_1 = require("../actions/client-action-handler");
|
|
|
24
8
|
const command_stack_1 = require("../command/command-stack");
|
|
25
9
|
const undo_redo_action_handler_1 = require("../command/undo-redo-action-handler");
|
|
26
10
|
const diagram_configuration_1 = require("../diagram/diagram-configuration");
|
|
27
|
-
const request_type_hints_action_handler_1 = require("../diagram/request-type-hints-action-handler");
|
|
28
11
|
const command_palette_action_provider_1 = require("../features/contextactions/command-palette-action-provider");
|
|
29
12
|
const context_actions_provider_registry_1 = require("../features/contextactions/context-actions-provider-registry");
|
|
30
13
|
const context_menu_item_provider_1 = require("../features/contextactions/context-menu-item-provider");
|
|
@@ -51,6 +34,9 @@ const resolve_navigation_targets_action_handler_1 = require("../features/navigat
|
|
|
51
34
|
const popup_model_factory_1 = require("../features/popup/popup-model-factory");
|
|
52
35
|
const request_popup_model_action_handler_1 = require("../features/popup/request-popup-model-action-handler");
|
|
53
36
|
const progress_service_1 = require("../features/progress/progress-service");
|
|
37
|
+
const edge_creation_checker_1 = require("../features/type-hints/edge-creation-checker");
|
|
38
|
+
const request_check_edge_action_handler_1 = require("../features/type-hints/request-check-edge-action-handler");
|
|
39
|
+
const request_type_hints_action_handler_1 = require("../features/type-hints/request-type-hints-action-handler");
|
|
54
40
|
const model_validator_1 = require("../features/validation/model-validator");
|
|
55
41
|
const request_markers_handler_1 = require("../features/validation/request-markers-handler");
|
|
56
42
|
const compound_operation_handler_1 = require("../operations/compound-operation-handler");
|
|
@@ -107,15 +93,17 @@ const service_identifiers_1 = require("./service-identifiers");
|
|
|
107
93
|
* - {@link ClientSessionInitializer} as {@link ClassMultiBinding<ClientSessionInitializer>}
|
|
108
94
|
* - {@link PopupModelFactory} as optional binding
|
|
109
95
|
* - {@link LayoutEngine} as optional binding
|
|
96
|
+
* - {@link EdgeCreationChecker} as optional binding
|
|
110
97
|
*/
|
|
111
98
|
class DiagramModule extends glsp_module_1.GLSPModule {
|
|
112
99
|
configure(bind, unbind, isBound, rebind) {
|
|
113
|
-
var _a;
|
|
100
|
+
var _a, _b, _c, _d;
|
|
114
101
|
const context = { bind, isBound };
|
|
115
102
|
// Configurations
|
|
116
103
|
(0, binding_target_1.applyBindingTarget)(context, service_identifiers_1.DiagramType, this.bindDiagramType());
|
|
117
104
|
(0, binding_target_1.applyBindingTarget)(context, service_identifiers_1.ClientId, this.bindClientId());
|
|
118
105
|
(0, binding_target_1.applyBindingTarget)(context, diagram_configuration_1.DiagramConfiguration, this.bindDiagramConfiguration()).inSingletonScope();
|
|
106
|
+
(0, binding_target_1.applyBindingTarget)(context, client_action_handler_1.ClientActionForwarder, this.bindClientActionForwarder()).inSingletonScope();
|
|
119
107
|
// Model-related bindings
|
|
120
108
|
(0, binding_target_1.applyBindingTarget)(context, gmodel_serializer_1.GModelSerializer, this.bindGModelSerializer()).inSingletonScope();
|
|
121
109
|
(0, binding_target_1.applyBindingTarget)(context, model_state_1.ModelState, this.bindModelState()).inSingletonScope();
|
|
@@ -134,7 +122,6 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
134
122
|
(0, binding_target_1.applyBindingTarget)(context, context_actions_provider_registry_1.ContextActionsProviderRegistry, this.bindContextActionsProviderRegistry()).inSingletonScope();
|
|
135
123
|
// Action & operation related bindings
|
|
136
124
|
(0, binding_target_1.applyBindingTarget)(context, action_dispatcher_1.ActionDispatcher, this.bindActionDispatcher()).inSingletonScope();
|
|
137
|
-
this.configureMultiBinding(new multi_binding_1.InstanceMultiBinding(service_identifiers_1.ClientActionKinds), binding => this.configureClientActions(binding));
|
|
138
125
|
this.configureMultiBinding(new multi_binding_1.InstanceMultiBinding(action_handler_1.ActionHandlerConstructor), binding => this.configureActionHandlers(binding));
|
|
139
126
|
(0, binding_target_1.applyBindingTarget)(context, action_handler_1.ActionHandlerFactory, this.bindActionHandlerFactory());
|
|
140
127
|
(0, binding_target_1.applyBindingTarget)(context, action_handler_registry_1.ActionHandlerRegistry, this.bindActionHandlerRegistry()).inSingletonScope();
|
|
@@ -144,7 +131,7 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
144
131
|
(0, binding_target_1.applyBindingTarget)(context, service_identifiers_1.Operations, this.bindOperations()).inSingletonScope();
|
|
145
132
|
(0, binding_target_1.applyBindingTarget)(context, command_stack_1.CommandStack, this.bindCommandStack()).inSingletonScope();
|
|
146
133
|
// Navigation
|
|
147
|
-
(0, binding_target_1.applyOptionalBindingTarget)(context, navigation_target_resolver_1.NavigationTargetResolver, this.bindNavigationTargetResolver());
|
|
134
|
+
(_a = (0, binding_target_1.applyOptionalBindingTarget)(context, navigation_target_resolver_1.NavigationTargetResolver, this.bindNavigationTargetResolver())) === null || _a === void 0 ? void 0 : _a.inSingletonScope();
|
|
148
135
|
this.configureMultiBinding(new multi_binding_1.MultiBinding(service_identifiers_1.NavigationTargetProviders), binding => this.configureNavigationTargetProviders(binding));
|
|
149
136
|
(0, binding_target_1.applyBindingTarget)(context, navigation_target_provider_registry_1.NavigationTargetProviderRegistry, this.bindNavigationTargetProviderRegistry()).inSingletonScope();
|
|
150
137
|
// Context edit
|
|
@@ -153,19 +140,20 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
153
140
|
// Misc
|
|
154
141
|
this.configureMultiBinding(new multi_binding_1.MultiBinding(client_session_initializer_1.ClientSessionInitializer), binding => this.configureClientSessionInitializers(binding));
|
|
155
142
|
(0, binding_target_1.applyBindingTarget)(context, progress_service_1.ProgressService, this.bindProgressService()).inSingletonScope();
|
|
156
|
-
(0, binding_target_1.applyOptionalBindingTarget)(context, popup_model_factory_1.PopupModelFactory, this.bindPopupModelFactory());
|
|
157
|
-
(0, binding_target_1.applyOptionalBindingTarget)(context, layout_engine_1.LayoutEngine,
|
|
143
|
+
(_b = (0, binding_target_1.applyOptionalBindingTarget)(context, popup_model_factory_1.PopupModelFactory, this.bindPopupModelFactory())) === null || _b === void 0 ? void 0 : _b.inSingletonScope();
|
|
144
|
+
(_c = (0, binding_target_1.applyOptionalBindingTarget)(context, layout_engine_1.LayoutEngine, this.bindLayoutEngine())) === null || _c === void 0 ? void 0 : _c.inSingletonScope();
|
|
145
|
+
(_d = (0, binding_target_1.applyOptionalBindingTarget)(context, edge_creation_checker_1.EdgeCreationChecker, this.bindEdgeCreationChecker())) === null || _d === void 0 ? void 0 : _d.inSingletonScope();
|
|
158
146
|
}
|
|
159
147
|
configureClientSessionInitializers(binding) {
|
|
160
148
|
binding.add(action_handler_registry_1.ActionHandlerRegistryInitializer);
|
|
161
149
|
binding.add(operation_handler_registry_1.OperationHandlerRegistryInitializer);
|
|
162
150
|
}
|
|
163
151
|
configureActionHandlers(binding) {
|
|
164
|
-
binding.add(client_action_handler_1.ClientActionHandler);
|
|
165
152
|
binding.add(request_model_action_handler_1.RequestModelActionHandler);
|
|
166
153
|
binding.add(request_context_actions_handler_1.RequestContextActionsHandler);
|
|
167
154
|
binding.add(request_type_hints_action_handler_1.RequestTypeHintsActionHandler);
|
|
168
155
|
binding.add(operation_action_handler_1.OperationActionHandler);
|
|
156
|
+
binding.add(request_check_edge_action_handler_1.RequestCheckEdgeActionHandler);
|
|
169
157
|
binding.add(request_markers_handler_1.RequestMarkersHandler);
|
|
170
158
|
binding.add(request_popup_model_action_handler_1.RequestPopupModelActionHandler);
|
|
171
159
|
binding.add(request_edit_validation_handler_1.RequestEditValidationHandler);
|
|
@@ -184,6 +172,9 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
184
172
|
bindGModelSerializer() {
|
|
185
173
|
return gmodel_serializer_1.DefaultGModelSerializer;
|
|
186
174
|
}
|
|
175
|
+
bindClientActionForwarder() {
|
|
176
|
+
return client_action_handler_1.ClientActionForwarder;
|
|
177
|
+
}
|
|
187
178
|
bindGModelIndex() {
|
|
188
179
|
return gmodel_index_1.GModelIndex;
|
|
189
180
|
}
|
|
@@ -237,39 +228,6 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
237
228
|
configureNavigationTargetProviders(binding) {
|
|
238
229
|
// empty as default
|
|
239
230
|
}
|
|
240
|
-
configureClientActions(binding) {
|
|
241
|
-
binding.add(protocol_1.CenterAction.KIND);
|
|
242
|
-
binding.add(protocol_1.DeleteMarkersAction.KIND);
|
|
243
|
-
binding.add(protocol_1.EndProgressAction.KIND);
|
|
244
|
-
binding.add(protocol_1.ExportSvgAction.KIND);
|
|
245
|
-
binding.add(protocol_1.FitToScreenAction.KIND);
|
|
246
|
-
binding.add(protocol_1.NavigateToExternalTargetAction.KIND);
|
|
247
|
-
binding.add(protocol_1.NavigateToTargetAction.KIND);
|
|
248
|
-
binding.add(protocol_1.RequestBoundsAction.KIND);
|
|
249
|
-
binding.add(protocol_1.SelectAction.KIND);
|
|
250
|
-
binding.add(protocol_1.SelectAllAction.KIND);
|
|
251
|
-
binding.add(protocol_1.ServerMessageAction.KIND);
|
|
252
|
-
binding.add(protocol_1.ServerStatusAction.KIND);
|
|
253
|
-
binding.add(protocol_1.SetBoundsAction.KIND);
|
|
254
|
-
binding.add(protocol_1.SetClipboardDataAction.KIND);
|
|
255
|
-
binding.add(protocol_1.SetContextActions.KIND);
|
|
256
|
-
binding.add(protocol_1.SetDirtyStateAction.KIND);
|
|
257
|
-
binding.add(protocol_1.SetEditModeAction.KIND);
|
|
258
|
-
binding.add(protocol_1.SetEditValidationResultAction.KIND);
|
|
259
|
-
binding.add(protocol_1.SetMarkersAction.KIND);
|
|
260
|
-
binding.add(protocol_1.SetModelAction.KIND);
|
|
261
|
-
binding.add(protocol_1.SetNavigationTargetsAction.KIND);
|
|
262
|
-
binding.add(protocol_1.SetPopupModelAction.KIND);
|
|
263
|
-
binding.add(protocol_1.SetResolvedNavigationTargetAction.KIND);
|
|
264
|
-
binding.add(protocol_1.SetTypeHintsAction.KIND);
|
|
265
|
-
binding.add(protocol_1.SetViewportAction.KIND);
|
|
266
|
-
binding.add(protocol_1.SourceModelChangedAction.KIND);
|
|
267
|
-
binding.add(protocol_1.StartProgressAction.KIND);
|
|
268
|
-
binding.add(protocol_1.TriggerEdgeCreationAction.KIND);
|
|
269
|
-
binding.add(protocol_1.TriggerNodeCreationAction.KIND);
|
|
270
|
-
binding.add(protocol_1.UpdateModelAction.KIND);
|
|
271
|
-
binding.add(protocol_1.UpdateProgressAction.KIND);
|
|
272
|
-
}
|
|
273
231
|
bindContextActionsProviderRegistry() {
|
|
274
232
|
return context_actions_provider_registry_1.ContextActionsProviderRegistry;
|
|
275
233
|
}
|
|
@@ -298,6 +256,9 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
298
256
|
bindLayoutEngine() {
|
|
299
257
|
return undefined;
|
|
300
258
|
}
|
|
259
|
+
bindEdgeCreationChecker() {
|
|
260
|
+
return undefined;
|
|
261
|
+
}
|
|
301
262
|
}
|
|
302
263
|
exports.DiagramModule = DiagramModule;
|
|
303
264
|
DiagramModule.FALLBACK_CLIENT_ID = 'FallbackClientId';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagram-module.js","sourceRoot":"","sources":["../../../src/common/di/diagram-module.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"diagram-module.js","sourceRoot":"","sources":["../../../src/common/di/diagram-module.ts"],"names":[],"mappings":";;;AAgBA,oEAAyF;AACzF,8DAA2F;AAC3F,gFAA6G;AAC7G,4EAAyE;AACzE,4DAA6E;AAC7E,kFAA4E;AAC5E,4EAAwE;AACxE,gHAA0G;AAE1G,oHAA8G;AAC9G,sGAAgG;AAChG,gHAA0G;AAC1G,sGAAgI;AAEhI,+GAGmE;AACnE,yFAAoF;AACpF,+GAAyG;AACzG,sGAAgG;AAChG,oEAAgE;AAChE,0FAAqF;AACrF,qEAAiE;AACjE,iEAA6D;AAC7D,2EAAgG;AAChG,+DAA2D;AAC3D,yFAAoF;AACpF,iGAA2F;AAC3F,2FAAqF;AACrF,iFAA4E;AAE5E,oHAGoE;AACpE,kGAA6F;AAC7F,gIAAyH;AACzH,gIAAyH;AACzH,+EAA0E;AAC1E,6GAAsG;AACtG,4EAAgG;AAChG,wFAAmF;AACnF,gHAAyG;AACzG,gHAAyG;AACzG,4EAAwE;AACxE,4FAAuF;AACvF,yFAAoF;AACpF,qFAAgF;AAChF,uEAAuG;AACvG,yFAAyH;AACzH,sFAAiF;AACjF,qDAAiG;AACjG,+CAA2C;AAC3C,mDAAqE;AACrE,+DAO+B;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,MAAsB,aAAc,SAAQ,wBAAU;IAIxC,SAAS,CAAC,IAAqB,EAAE,MAAyB,EAAE,OAA2B,EAAE,MAAyB;;QACxH,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAClC,iBAAiB;QACjB,IAAA,mCAAkB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/D,CAAC;IACN,CAAC;IAES,gBAAgB;QACtB,OAAO,mCAAmB,CAAC;IAC/B,CAAC;IAES,0BAA0B,CAAC,OAA0D;QAC3F,OAAO,CAAC,GAAG,CAAC,qDAAwB,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,iDAAsB,CAAC,CAAC;IACxC,CAAC;IAES,mBAAmB;QACzB,OAAO,yCAAsB,CAAC;IAClC,CAAC;IAES,+BAA+B,CAAC,OAA6C;QACnF,mBAAmB;IACvB,CAAC;IAES,8BAA8B,CAAC,OAA2C;QAChF,mBAAmB;IACvB,CAAC;IAES,kCAAkC,CAAC,OAA+C;QACxF,mBAAmB;IACvB,CAAC;IAES,kCAAkC;QACxC,OAAO,kEAA8B,CAAC;IAC1C,CAAC;IAyBD,oBAAoB;IAEV,kBAAkB;QACxB,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,sBAAsB;QAC5B,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,2BAA2B;QACjC,OAAO,2DAA8B,CAAC;IAC1C,CAAC;IAES,gCAAgC;QACtC,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,2BAA2B;QACjC,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,4BAA4B;QAClC,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,qBAAqB;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,gBAAgB;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,uBAAuB;QAC7B,OAAO,SAAS,CAAC;IACrB,CAAC;;AAjPL,sCAkPC;AAjPmB,gCAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -14,7 +14,7 @@ const inversify_1 = require("inversify");
|
|
|
14
14
|
/**
|
|
15
15
|
* Common super class for GLSP {@link ContainerModule}s.
|
|
16
16
|
*/
|
|
17
|
-
let GLSPModule =
|
|
17
|
+
let GLSPModule = class GLSPModule extends inversify_1.ContainerModule {
|
|
18
18
|
constructor() {
|
|
19
19
|
super((bind, unbind, isBound, rebind) => {
|
|
20
20
|
this.context = { bind, unbind, isBound, rebind };
|
|
@@ -35,6 +35,7 @@ let GLSPModule = exports.GLSPModule = class GLSPModule extends inversify_1.Conta
|
|
|
35
35
|
binding.applyBindings(this.context);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
exports.GLSPModule = GLSPModule;
|
|
38
39
|
GLSPModule.CLIENT_ACTIONS = 'ClientActions';
|
|
39
40
|
exports.GLSPModule = GLSPModule = __decorate([
|
|
40
41
|
(0, inversify_1.injectable)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-module.js","sourceRoot":"","sources":["../../../src/common/di/glsp-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,yCAAoE;AAepE;;GAEG;AAEI,IAAe,UAAU,
|
|
1
|
+
{"version":3,"file":"glsp-module.js","sourceRoot":"","sources":["../../../src/common/di/glsp-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,yCAAoE;AAepE;;GAEG;AAEI,IAAe,UAAU,GAAzB,MAAe,UAAW,SAAQ,2BAAe;IAKpD;QACI,KAAK,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;YACpC,IAAI,CAAC,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;YACjD,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACP,CAAC;IASD;;;;;;;;OAQG;IACO,qBAAqB,CAAI,OAAgC,EAAE,YAAwD;QACzH,YAAY,CAAC,OAAO,CAAC,CAAC;QACtB,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;;AA/BiB,gCAAU;AACd,yBAAc,GAAG,eAAe,AAAlB,CAAmB;qBAD7B,UAAU;IAD/B,IAAA,sBAAU,GAAE;;GACS,UAAU,CAgC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/server-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAA+B,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEtG,OAAO,EAAE,oBAAoB,EAA+B,MAAM,mCAAmC,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAA+B,MAAM,mCAAmC,CAAC;AACtG,OAAO,EAAE,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C
|
|
1
|
+
{"version":3,"file":"server-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/server-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAA+B,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEtG,OAAO,EAAE,oBAAoB,EAA+B,MAAM,mCAAmC,CAAC;AACtG,OAAO,EAAE,oBAAoB,EAA+B,MAAM,mCAAmC,CAAC;AACtG,OAAO,EAAE,aAAa,EAAsB,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,YAAa,SAAQ,UAAU;IACxC,OAAc,eAAe,SAAqB;IAClD,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAAa;IAE9E;;;;;;;;;;OAUG;IACH,sBAAsB,CAAC,aAAa,EAAE,aAAa,EAAE,GAAG,iBAAiB,EAAE,eAAe,EAAE,GAAG,YAAY;IAS3G,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,GAAG,IAAI;IAkBzH,SAAS,CAAC,kBAAkB,IAAI,aAAa,CAAC,GAAG,CAAC,MAAM,EAAE,eAAe,EAAE,CAAC,CAAC;IAI7E,SAAS,CAAC,cAAc,IAAI,aAAa,CAAC,UAAU,CAAC;IAIrD,SAAS,CAAC,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;IAIzE,SAAS,CAAC,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;IAIzE,SAAS,CAAC,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;IAIzE,SAAS,CAAC,sBAAsB,IAAI,aAAa,CAAC,UAAU,CAAC,SAAS,CAAC;IAIvE,SAAS,CAAC,4BAA4B,CAAC,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,GAAG,IAAI;CAG1F"}
|
|
@@ -41,7 +41,6 @@ const service_identifiers_1 = require("./service-identifiers");
|
|
|
41
41
|
* * {@link ClientSessionFactory}
|
|
42
42
|
* * {@link ClientSessionManager}
|
|
43
43
|
* * {@link GlobalActionProvider}
|
|
44
|
-
* * {@link GLSPClientProxy}
|
|
45
44
|
*
|
|
46
45
|
*/
|
|
47
46
|
class ServerModule extends glsp_module_1.GLSPModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-module.js","sourceRoot":"","sources":["../../../src/common/di/server-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAwE;AAExE,8EAAsG;AACtG,yDAA4D;AAC5D,8EAAsG;AACtG,8EAAsG;AACtG,qDAAqE;AAErE,+CAA2C;AAC3C,mDAA+C;AAC/C,+DAA2E;AAE3E
|
|
1
|
+
{"version":3,"file":"server-module.js","sourceRoot":"","sources":["../../../src/common/di/server-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAwE;AAExE,8EAAsG;AACtG,yDAA4D;AAC5D,8EAAsG;AACtG,8EAAsG;AACtG,qDAAqE;AAErE,+CAA2C;AAC3C,mDAA+C;AAC/C,+DAA2E;AAE3E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAa,YAAa,SAAQ,wBAAU;IAA5C;;QAEuB,mBAAc,GAAmC,IAAI,GAAG,EAAE,CAAC;IAmElF,CAAC;IAjEG;;;;;;;;;;OAUG;IACH,sBAAsB,CAAC,aAA4B,EAAE,GAAG,iBAAoC;QACxF,MAAM,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;QAC9C,IAAI,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;YACtC,MAAM,IAAI,KAAK,CAAC,gEAAgE,WAAW,GAAG,CAAC,CAAC;SACnG;QACD,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,aAAa,EAAE,GAAG,iBAAiB,CAAC,CAAC,CAAC;QAC5E,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,SAAS,CAAC,IAAqB,EAAE,MAAyB,EAAE,OAA2B,EAAE,MAAyB;QAC9G,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAA,mCAAkB,EAAC,OAAO,EAAE,oCAAc,EAAE,IAAI,CAAC,k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C,GAAG,CAAC,EAAE,OAAO,EAAE,6CAAoB,EAAE,CAAC,CAAC;IACnD,CAAC;;AApEL,oCAqEC;AApEiB,4BAAe,GAAG,iBAAiB,AAApB,CAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-clipboard-data-action-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/clipboard/request-clipboard-data-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,MAAM,
|
|
1
|
+
{"version":3,"file":"request-clipboard-data-action-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/clipboard/request-clipboard-data-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,MAAM,EAGN,YAAY,EACZ,0BAA0B,EAE7B,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,qBACa,iCAAkC,YAAW,aAAa;IACnE,WAAW,WAAqC;IAGhD,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAGjC,SAAS,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAE5C,OAAO,CAAC,MAAM,EAAE,0BAA0B,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;CAYtE"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const gmodel_serializer_1 = require("../model/gmodel-serializer");
|
|
31
31
|
const model_state_1 = require("../model/model-state");
|
|
32
|
-
let RequestClipboardDataActionHandler =
|
|
32
|
+
let RequestClipboardDataActionHandler = class RequestClipboardDataActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.RequestClipboardDataAction.KIND];
|
|
35
35
|
}
|
|
@@ -46,6 +46,7 @@ let RequestClipboardDataActionHandler = exports.RequestClipboardDataActionHandle
|
|
|
46
46
|
return [protocol_1.SetClipboardDataAction.create(clipboardData)];
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
+
exports.RequestClipboardDataActionHandler = RequestClipboardDataActionHandler;
|
|
49
50
|
__decorate([
|
|
50
51
|
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
51
52
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-clipboard-data-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/clipboard/request-clipboard-data-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAOgC;AAChC,yCAA+C;AAE/C,kEAA8D;AAC9D,sDAAkD;AAG3C,IAAM,iCAAiC
|
|
1
|
+
{"version":3,"file":"request-clipboard-data-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/clipboard/request-clipboard-data-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAOgC;AAChC,yCAA+C;AAE/C,kEAA8D;AAC9D,sDAAkD;AAG3C,IAAM,iCAAiC,GAAvC,MAAM,iCAAiC;IAAvC;QACH,gBAAW,GAAG,CAAC,qCAA0B,CAAC,IAAI,CAAC,CAAC;IAoBpD,CAAC;IAZG,OAAO,CAAC,MAAkC;QACtC,MAAM,OAAO,GAA0B,EAAE,CAAC;QAC1C,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QACpC,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;QAC/E,MAAM,aAAa,GAAkB,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;QACpE,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;YAC/B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;QACH,2CAA2C;QAC3C,aAAa,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QAC1E,OAAO,CAAC,iCAAsB,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;IAC1D,CAAC;CACJ,CAAA;AArBY,8EAAiC;AAIhC;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;qEACc;AAGvB;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;0EACmB;4CAPnC,iCAAiC;IAD7C,IAAA,sBAAU,GAAE;GACA,iCAAiC,CAqB7C"}
|
|
@@ -15,7 +15,7 @@ const model_state_1 = require("../model/model-state");
|
|
|
15
15
|
/**
|
|
16
16
|
* A {@link ContextActionsProvider} for CommandPaletteActions.
|
|
17
17
|
*/
|
|
18
|
-
let CommandPaletteActionProvider =
|
|
18
|
+
let CommandPaletteActionProvider = class CommandPaletteActionProvider {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.TEXT = 'text';
|
|
21
21
|
this.INDEX = 'index';
|
|
@@ -61,6 +61,7 @@ let CommandPaletteActionProvider = exports.CommandPaletteActionProvider = class
|
|
|
61
61
|
return this.getPaletteActions(selectedIds, selectedElements, position, editorContext.args);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
+
exports.CommandPaletteActionProvider = CommandPaletteActionProvider;
|
|
64
65
|
__decorate([
|
|
65
66
|
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
66
67
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-palette-action-provider.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/command-palette-action-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAiBA,yCAA+C;AAC/C,sDAAkD;AAGlD;;GAEG;AAEI,IAAe,4BAA4B,
|
|
1
|
+
{"version":3,"file":"command-palette-action-provider.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/command-palette-action-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAiBA,yCAA+C;AAC/C,sDAAkD;AAGlD;;GAEG;AAEI,IAAe,4BAA4B,GAA3C,MAAe,4BAA4B;IAA3C;QAIM,SAAI,GAAG,MAAM,CAAC;QACd,UAAK,GAAG,OAAO,CAAC;IA+D7B,CAAC;IA7DG;;OAEG;IACH,IAAI,SAAS;QACT,OAAO,iBAAiB,CAAC;IAC7B,CAAC;IAED;;;;;OAKG;IACH,OAAO,CAAC,IAAU;QACd,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7D,CAAC;IAED;;;;;OAKG;IACH,QAAQ,CAAC,IAAU;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAY,CAAC,CAAC,CAAC,GAAG,CAAC;IACjE,CAAC;IAED;;;;;OAKG;IACH,UAAU,CAAC,aAA4B;QACnC,MAAM,OAAO,GAAoB,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE;YAC5B,OAAO,OAAO,CAAC;SAClB;QAED,MAAM,WAAW,GAAG,aAAa,CAAC,kBAAkB,CAAC;QACrD,MAAM,QAAQ,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACpG,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAEnE,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,gBAAgB,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/F,CAAC;CAiBJ,CAAA;AApEqB,oEAA4B;AAEpC;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;gEACc;uCAFf,4BAA4B;IADjD,IAAA,sBAAU,GAAE;GACS,4BAA4B,CAoEjD"}
|
|
@@ -37,7 +37,7 @@ const tool_palette_item_provider_1 = require("./tool-palette-item-provider");
|
|
|
37
37
|
/**
|
|
38
38
|
* A registry that keeps track of all registered {@link ContextActionsProvider}s.
|
|
39
39
|
*/
|
|
40
|
-
let ContextActionsProviderRegistry =
|
|
40
|
+
let ContextActionsProviderRegistry = class ContextActionsProviderRegistry extends registry_1.Registry {
|
|
41
41
|
constructor(contextActionsProvider = [], contextMenuItemProvider, commandPaletteActionProvider, toolPaletteItemProvider) {
|
|
42
42
|
super();
|
|
43
43
|
contextActionsProvider.forEach(provider => this.register(provider.contextId, provider));
|
|
@@ -52,6 +52,7 @@ let ContextActionsProviderRegistry = exports.ContextActionsProviderRegistry = cl
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
+
exports.ContextActionsProviderRegistry = ContextActionsProviderRegistry;
|
|
55
56
|
exports.ContextActionsProviderRegistry = ContextActionsProviderRegistry = __decorate([
|
|
56
57
|
(0, inversify_1.injectable)(),
|
|
57
58
|
__param(0, (0, inversify_1.multiInject)(service_identifiers_1.ContextActionsProviders)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-actions-provider-registry.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/context-actions-provider-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAsE;AACtE,sEAAuE;AACvE,mDAAgD;AAChD,uFAAiF;AAEjF,6EAAuE;AACvE,6EAAuE;AAEvE;;GAEG;AAEI,IAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"context-actions-provider-registry.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/context-actions-provider-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAsE;AACtE,sEAAuE;AACvE,mDAAgD;AAChD,uFAAiF;AAEjF,6EAAuE;AACvE,6EAAuE;AAEvE;;GAEG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,mBAAwC;IACxF,YACsD,yBAAmD,EAAE,EAC1D,uBAAiD,EAC5C,4BAA2D,EAChE,uBAAiD;QAE9F,KAAK,EAAE,CAAC;QACR,sBAAsB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;QACxF,IAAI,uBAAuB,EAAE;YACzB,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;SAC7E;QACD,IAAI,4BAA4B,EAAE;YAC9B,IAAI,CAAC,QAAQ,CAAC,4BAA4B,CAAC,SAAS,EAAE,4BAA4B,CAAC,CAAC;SACvF;QACD,IAAI,uBAAuB,EAAE;YACzB,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;SAC7E;IACL,CAAC;CACJ,CAAA;AAnBY,wEAA8B;yCAA9B,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;IAGJ,WAAA,IAAA,uBAAW,EAAC,6CAAuB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;IAChD,WAAA,IAAA,kBAAM,EAAC,oDAAuB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;IAC3C,WAAA,IAAA,kBAAM,EAAC,8DAA4B,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;IAChD,WAAA,IAAA,kBAAM,EAAC,oDAAuB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;4CAF2B,oDAAuB;QACb,8DAA4B;QACtC,oDAAuB;GALzF,8BAA8B,CAmB1C"}
|
|
@@ -11,7 +11,7 @@ const inversify_1 = require("inversify");
|
|
|
11
11
|
/**
|
|
12
12
|
* A {@link ContextActionsProvider} for {@link MenuItem}s.
|
|
13
13
|
*/
|
|
14
|
-
let ContextMenuItemProvider =
|
|
14
|
+
let ContextMenuItemProvider = class ContextMenuItemProvider {
|
|
15
15
|
/**
|
|
16
16
|
* Returns the context id of the {@link ContextMenuItemProvider}.
|
|
17
17
|
*/
|
|
@@ -29,6 +29,7 @@ let ContextMenuItemProvider = exports.ContextMenuItemProvider = class ContextMen
|
|
|
29
29
|
return this.getItems(editorContext.selectedElementIds, position, editorContext.args);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
+
exports.ContextMenuItemProvider = ContextMenuItemProvider;
|
|
32
33
|
exports.ContextMenuItemProvider = ContextMenuItemProvider = __decorate([
|
|
33
34
|
(0, inversify_1.injectable)()
|
|
34
35
|
], ContextMenuItemProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-menu-item-provider.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/context-menu-item-provider.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAGvC;;GAEG;AAEI,IAAe,uBAAuB,
|
|
1
|
+
{"version":3,"file":"context-menu-item-provider.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/context-menu-item-provider.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAGvC;;GAEG;AAEI,IAAe,uBAAuB,GAAtC,MAAe,uBAAuB;IACzC;;OAEG;IACH,IAAI,SAAS;QACT,OAAO,cAAc,CAAC;IAC1B,CAAC;IAYD;;;;;OAKG;IACH,UAAU,CAAC,aAA4B;QACnC,MAAM,QAAQ,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACpG,OAAO,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,kBAAkB,EAAE,QAAQ,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC;IACzF,CAAC;CACJ,CAAA;AA5BqB,0DAAuB;kCAAvB,uBAAuB;IAD5C,IAAA,sBAAU,GAAE;GACS,uBAAuB,CA4B5C"}
|
|
@@ -28,7 +28,7 @@ exports.RequestContextActionsHandler = void 0;
|
|
|
28
28
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const context_actions_provider_registry_1 = require("./context-actions-provider-registry");
|
|
31
|
-
let RequestContextActionsHandler =
|
|
31
|
+
let RequestContextActionsHandler = class RequestContextActionsHandler {
|
|
32
32
|
constructor() {
|
|
33
33
|
this.actionKinds = [protocol_1.RequestContextActions.KIND];
|
|
34
34
|
}
|
|
@@ -42,6 +42,7 @@ let RequestContextActionsHandler = exports.RequestContextActionsHandler = class
|
|
|
42
42
|
return [protocol_1.SetContextActions.create(actions, { args: action.editorContext.args })];
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
exports.RequestContextActionsHandler = RequestContextActionsHandler;
|
|
45
46
|
__decorate([
|
|
46
47
|
(0, inversify_1.inject)(context_actions_provider_registry_1.ContextActionsProviderRegistry),
|
|
47
48
|
__metadata("design:type", context_actions_provider_registry_1.ContextActionsProviderRegistry)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-context-actions-handler.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/request-context-actions-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAyG;AACzG,yCAA+C;AAE/C,2FAAqF;AAG9E,IAAM,4BAA4B,
|
|
1
|
+
{"version":3,"file":"request-context-actions-handler.js","sourceRoot":"","sources":["../../../../src/common/features/contextactions/request-context-actions-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAyG;AACzG,yCAA+C;AAE/C,2FAAqF;AAG9E,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IAAlC;QACH,gBAAW,GAAG,CAAC,gCAAqB,CAAC,IAAI,CAAC,CAAC;IAc/C,CAAC;IATG,KAAK,CAAC,OAAO,CAAC,MAA6B;QACvC,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC3C,MAAM,OAAO,GAAoB,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,8BAA8B,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;YAC3D,MAAM,QAAQ,GAAG,IAAI,CAAC,8BAA8B,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAE,CAAC;YAC5E,CAAC,MAAM,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;SAClG;QACD,OAAO,CAAC,4BAAiB,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACpF,CAAC;CACJ,CAAA;AAfY,oEAA4B;AAI3B;IADT,IAAA,kBAAM,EAAC,kEAA8B,CAAC;8BACG,kEAA8B;oFAAC;uCAJhE,4BAA4B;IADxC,IAAA,sBAAU,GAAE;GACA,4BAA4B,CAexC"}
|