@eclipse-glsp/server 1.1.0-next.dc6b980.47 → 1.1.0-next.de91dcd.60
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/di/app-module.d.ts +2 -7
- package/lib/browser/di/app-module.d.ts.map +1 -1
- package/lib/browser/di/app-module.js +5 -30
- package/lib/browser/di/app-module.js.map +1 -1
- package/lib/browser/index.d.ts +0 -1
- package/lib/browser/index.d.ts.map +1 -1
- package/lib/browser/index.js +0 -1
- package/lib/browser/index.js.map +1 -1
- package/lib/browser/launch/worker-server-launcher.d.ts +4 -4
- package/lib/browser/launch/worker-server-launcher.d.ts.map +1 -1
- package/lib/browser/launch/worker-server-launcher.js +6 -13
- package/lib/browser/launch/worker-server-launcher.js.map +1 -1
- package/lib/common/actions/action-dispatcher.js +2 -3
- package/lib/common/actions/action-dispatcher.js.map +1 -1
- package/lib/common/actions/action-handler-registry.js +4 -6
- package/lib/common/actions/action-handler-registry.js.map +1 -1
- package/lib/common/actions/client-action-handler.d.ts +1 -2
- package/lib/common/actions/client-action-handler.d.ts.map +1 -1
- package/lib/common/actions/client-action-handler.js +19 -5
- package/lib/common/actions/client-action-handler.js.map +1 -1
- package/lib/common/actions/global-action-provider.js +2 -3
- package/lib/common/actions/global-action-provider.js.map +1 -1
- package/lib/common/command/command-stack.d.ts +16 -1
- package/lib/common/command/command-stack.d.ts.map +1 -1
- package/lib/common/command/command-stack.js +2 -18
- package/lib/common/command/command-stack.js.map +1 -1
- package/lib/common/command/command.js +1 -1
- package/lib/common/command/command.js.map +1 -1
- package/lib/common/command/undo-redo-action-handler.js +2 -3
- package/lib/common/command/undo-redo-action-handler.js.map +1 -1
- package/lib/common/di/binding-target.d.ts.map +1 -1
- package/lib/common/di/binding-target.js +3 -2
- package/lib/common/di/binding-target.js.map +1 -1
- package/lib/common/di/client-session-module.d.ts +1 -1
- package/lib/common/di/client-session-module.d.ts.map +1 -1
- package/lib/common/di/client-session-module.js +2 -2
- package/lib/common/di/client-session-module.js.map +1 -1
- package/lib/common/di/diagram-module.d.ts +3 -0
- package/lib/common/di/diagram-module.d.ts.map +1 -1
- package/lib/common/di/diagram-module.js +14 -5
- package/lib/common/di/diagram-module.js.map +1 -1
- package/lib/common/di/glsp-module.d.ts +3 -1
- package/lib/common/di/glsp-module.d.ts.map +1 -1
- package/lib/common/di/glsp-module.js +2 -18
- package/lib/common/di/glsp-module.js.map +1 -1
- package/lib/common/di/multi-binding.d.ts +19 -4
- package/lib/common/di/multi-binding.d.ts.map +1 -1
- package/lib/common/di/multi-binding.js.map +1 -1
- package/lib/common/di/server-module.d.ts +1 -6
- package/lib/common/di/server-module.d.ts.map +1 -1
- package/lib/common/di/server-module.js +21 -17
- package/lib/common/di/server-module.js.map +1 -1
- package/lib/common/diagram/diagram-configuration.js +1 -1
- package/lib/common/diagram/diagram-configuration.js.map +1 -1
- package/lib/common/diagram/request-type-hints-action-handler.js +2 -3
- 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 -3
- 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 -3
- package/lib/common/features/contextactions/command-palette-action-provider.js.map +1 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.js +2 -3
- package/lib/common/features/contextactions/context-actions-provider-registry.js.map +1 -1
- package/lib/common/features/contextactions/context-menu-item-provider.js +2 -3
- package/lib/common/features/contextactions/context-menu-item-provider.js.map +1 -1
- package/lib/common/features/contextactions/request-context-actions-handler.js +2 -3
- package/lib/common/features/contextactions/request-context-actions-handler.js.map +1 -1
- package/lib/common/features/contextactions/tool-palette-item-provider.js +4 -6
- package/lib/common/features/contextactions/tool-palette-item-provider.js.map +1 -1
- package/lib/common/features/directediting/context-edit-validator-registry.js +2 -3
- package/lib/common/features/directediting/context-edit-validator-registry.js.map +1 -1
- package/lib/common/features/directediting/label-edit-validator.js +2 -3
- package/lib/common/features/directediting/label-edit-validator.js.map +1 -1
- package/lib/common/features/directediting/request-edit-validation-handler.js +2 -3
- package/lib/common/features/directediting/request-edit-validation-handler.js.map +1 -1
- package/lib/common/features/layout/computed-bounds-action-handler.js +2 -3
- package/lib/common/features/layout/computed-bounds-action-handler.js.map +1 -1
- package/lib/common/features/layout/layout-operation-handler.js +2 -3
- package/lib/common/features/layout/layout-operation-handler.js.map +1 -1
- package/lib/common/features/model/gmodel-factory.js +2 -3
- package/lib/common/features/model/gmodel-factory.js.map +1 -1
- package/lib/common/features/model/gmodel-index.js +2 -3
- package/lib/common/features/model/gmodel-index.js.map +1 -1
- package/lib/common/features/model/gmodel-serializer.js +2 -3
- package/lib/common/features/model/gmodel-serializer.js.map +1 -1
- package/lib/common/features/model/model-state.js +2 -3
- package/lib/common/features/model/model-state.js.map +1 -1
- package/lib/common/features/model/model-submission-handler.d.ts +2 -0
- package/lib/common/features/model/model-submission-handler.d.ts.map +1 -1
- package/lib/common/features/model/model-submission-handler.js +12 -3
- package/lib/common/features/model/model-submission-handler.js.map +1 -1
- package/lib/common/features/model/request-model-action-handler.d.ts +4 -6
- package/lib/common/features/model/request-model-action-handler.d.ts.map +1 -1
- package/lib/common/features/model/request-model-action-handler.js +16 -14
- package/lib/common/features/model/request-model-action-handler.js.map +1 -1
- package/lib/common/features/model/save-model-action-handler.js +2 -3
- package/lib/common/features/model/save-model-action-handler.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-provider-registry.js +2 -3
- package/lib/common/features/navigation/navigation-target-provider-registry.js.map +1 -1
- package/lib/common/features/navigation/navigation-target-resolver.js +2 -3
- package/lib/common/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js +2 -3
- 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 -3
- 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 -3
- package/lib/common/features/popup/request-popup-model-action-handler.js.map +1 -1
- package/lib/common/features/progress/progress-service.d.ts +44 -0
- package/lib/common/features/progress/progress-service.d.ts.map +1 -0
- package/lib/common/{protocol/glsp-client-proxy.js → features/progress/progress-service.js} +19 -22
- package/lib/common/features/progress/progress-service.js.map +1 -0
- package/lib/common/features/validation/model-validator.d.ts +47 -2
- package/lib/common/features/validation/model-validator.d.ts.map +1 -1
- package/lib/common/features/validation/model-validator.js +79 -1
- package/lib/common/features/validation/model-validator.js.map +1 -1
- package/lib/common/features/validation/request-markers-handler.d.ts +15 -0
- package/lib/common/features/validation/request-markers-handler.d.ts.map +1 -1
- package/lib/common/features/validation/request-markers-handler.js +5 -12
- package/lib/common/features/validation/request-markers-handler.js.map +1 -1
- package/lib/common/gmodel/apply-label-edit-operation-handler.js +2 -3
- package/lib/common/gmodel/apply-label-edit-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-bounds-operation-handler.js +2 -3
- package/lib/common/gmodel/change-bounds-operation-handler.js.map +1 -1
- package/lib/common/gmodel/change-routing-points-operation-handler.js +2 -3
- package/lib/common/gmodel/change-routing-points-operation-handler.js.map +1 -1
- package/lib/common/gmodel/cut-operation-handler.js +2 -3
- package/lib/common/gmodel/cut-operation-handler.js.map +1 -1
- package/lib/common/gmodel/delete-operation-handler.js +2 -3
- package/lib/common/gmodel/delete-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js +2 -3
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js +2 -3
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js.map +1 -1
- package/lib/common/gmodel/gmodel-diagram-module.js +2 -3
- package/lib/common/gmodel/gmodel-diagram-module.js.map +1 -1
- package/lib/common/gmodel/gmodel-operation-handler.js +1 -1
- package/lib/common/gmodel/gmodel-operation-handler.js.map +1 -1
- package/lib/common/gmodel/paste-operation-handler.js +2 -3
- package/lib/common/gmodel/paste-operation-handler.js.map +1 -1
- package/lib/common/gmodel/reconnect-edge-operation-handler.js +2 -3
- package/lib/common/gmodel/reconnect-edge-operation-handler.js.map +1 -1
- package/lib/common/index.d.ts +1 -2
- package/lib/common/index.d.ts.map +1 -1
- package/lib/common/index.js +1 -2
- package/lib/common/index.js.map +1 -1
- package/lib/common/launch/glsp-server-launcher.d.ts +1 -1
- package/lib/common/launch/glsp-server-launcher.d.ts.map +1 -1
- package/lib/common/launch/glsp-server-launcher.js +4 -5
- package/lib/common/launch/glsp-server-launcher.js.map +1 -1
- package/lib/common/launch/jsonrpc-server-launcher.d.ts +38 -0
- package/lib/common/launch/jsonrpc-server-launcher.d.ts.map +1 -0
- package/lib/common/launch/jsonrpc-server-launcher.js +83 -0
- package/lib/common/launch/jsonrpc-server-launcher.js.map +1 -0
- package/lib/common/operations/compound-operation-handler.js +6 -12
- package/lib/common/operations/compound-operation-handler.js.map +1 -1
- package/lib/common/operations/create-operation-handler.js +1 -1
- package/lib/common/operations/create-operation-handler.js.map +1 -1
- package/lib/common/operations/operation-action-handler.js +2 -3
- package/lib/common/operations/operation-action-handler.js.map +1 -1
- package/lib/common/operations/operation-handler-registry.js +4 -6
- package/lib/common/operations/operation-handler-registry.js.map +1 -1
- package/lib/common/operations/operation-handler.js +2 -3
- package/lib/common/operations/operation-handler.js.map +1 -1
- package/lib/common/protocol/glsp-server.d.ts +4 -104
- package/lib/common/protocol/glsp-server.d.ts.map +1 -1
- package/lib/common/protocol/glsp-server.js +15 -23
- package/lib/common/protocol/glsp-server.js.map +1 -1
- package/lib/common/session/client-session-factory.d.ts +1 -2
- package/lib/common/session/client-session-factory.d.ts.map +1 -1
- package/lib/common/session/client-session-factory.js +19 -5
- package/lib/common/session/client-session-factory.js.map +1 -1
- package/lib/common/session/client-session-manager.d.ts +1 -3
- package/lib/common/session/client-session-manager.d.ts.map +1 -1
- package/lib/common/session/client-session-manager.js +2 -3
- package/lib/common/session/client-session-manager.js.map +1 -1
- package/lib/common/utils/args-util.js +2 -2
- package/lib/common/utils/args-util.js.map +1 -1
- package/lib/{browser/di → common/utils}/console-logger.d.ts +7 -1
- package/lib/common/utils/console-logger.d.ts.map +1 -0
- package/lib/{browser/di → common/utils}/console-logger.js +27 -10
- package/lib/common/utils/console-logger.js.map +1 -0
- package/lib/common/utils/logger.d.ts +21 -0
- package/lib/common/utils/logger.d.ts.map +1 -1
- package/lib/common/utils/logger.js +16 -5
- package/lib/common/utils/logger.js.map +1 -1
- package/lib/common/utils/registry.js +4 -6
- package/lib/common/utils/registry.js.map +1 -1
- package/lib/node/abstract-json-model-storage.js +2 -3
- package/lib/node/abstract-json-model-storage.js.map +1 -1
- package/lib/node/di/app-module.d.ts +2 -2
- package/lib/node/di/app-module.d.ts.map +1 -1
- package/lib/node/di/app-module.js +10 -35
- package/lib/node/di/app-module.js.map +1 -1
- package/lib/node/gmodel/gmodel-storage.js +2 -3
- package/lib/node/gmodel/gmodel-storage.js.map +1 -1
- package/lib/node/launch/cli-parser.d.ts +2 -3
- package/lib/node/launch/cli-parser.d.ts.map +1 -1
- package/lib/node/launch/cli-parser.js.map +1 -1
- package/lib/node/launch/socket-server-launcher.d.ts +2 -23
- package/lib/node/launch/socket-server-launcher.d.ts.map +1 -1
- package/lib/node/launch/socket-server-launcher.js +9 -30
- package/lib/node/launch/socket-server-launcher.js.map +1 -1
- package/lib/node/launch/websocket-server-launcher.d.ts +2 -8
- package/lib/node/launch/websocket-server-launcher.d.ts.map +1 -1
- package/lib/node/launch/websocket-server-launcher.js +5 -30
- package/lib/node/launch/websocket-server-launcher.js.map +1 -1
- package/package.json +6 -4
- package/src/browser/di/app-module.ts +4 -32
- package/src/browser/index.ts +0 -1
- package/src/browser/launch/worker-server-launcher.ts +7 -13
- package/src/common/actions/client-action-handler.ts +1 -2
- package/src/common/command/command-stack.ts +1 -1
- package/src/common/di/binding-target.ts +1 -0
- package/src/common/di/client-session-module.ts +1 -1
- package/src/common/di/diagram-module.ts +20 -7
- package/src/common/di/glsp-module.ts +3 -1
- package/src/common/di/multi-binding.ts +4 -5
- package/src/common/di/server-module.ts +6 -21
- package/src/common/features/model/model-submission-handler.ts +12 -0
- package/src/common/features/model/request-model-action-handler.ts +16 -15
- package/src/common/features/progress/progress-service.ts +74 -0
- package/src/common/features/validation/model-validator.ts +75 -3
- package/src/common/features/validation/request-markers-handler.ts +4 -10
- package/src/common/index.ts +1 -2
- package/src/common/launch/glsp-server-launcher.ts +2 -2
- package/src/common/launch/jsonrpc-server-launcher.ts +95 -0
- package/src/common/protocol/glsp-server.spec.ts +7 -4
- package/src/common/protocol/glsp-server.ts +17 -132
- package/src/common/session/client-session-factory.spec.ts +1 -1
- package/src/common/session/client-session-factory.ts +1 -2
- package/src/common/session/client-session-manager.ts +1 -3
- package/src/common/test/mock-util.ts +5 -5
- package/src/common/utils/args-util.ts +1 -1
- package/src/{browser/di → common/utils}/console-logger.ts +19 -1
- package/src/common/utils/logger.ts +17 -1
- package/src/node/di/app-module.ts +4 -13
- package/src/node/launch/cli-parser.ts +2 -3
- package/src/node/launch/socket-server-launcher.spec.ts +6 -0
- package/src/node/launch/socket-server-launcher.ts +8 -30
- package/src/node/launch/websocket-server-launcher.ts +5 -31
- package/lib/browser/di/console-logger.d.ts.map +0 -1
- package/lib/browser/di/console-logger.js.map +0 -1
- package/lib/common/actions/action-dispatcher.spec.d.ts +0 -2
- package/lib/common/actions/action-dispatcher.spec.d.ts.map +0 -1
- package/lib/common/actions/action-dispatcher.spec.js +0 -264
- package/lib/common/actions/action-dispatcher.spec.js.map +0 -1
- package/lib/common/actions/action-handler-registry.spec.d.ts +0 -2
- package/lib/common/actions/action-handler-registry.spec.d.ts.map +0 -1
- package/lib/common/actions/action-handler-registry.spec.js +0 -50
- package/lib/common/actions/action-handler-registry.spec.js.map +0 -1
- package/lib/common/actions/global-action-provider.spec.d.ts +0 -2
- package/lib/common/actions/global-action-provider.spec.d.ts.map +0 -1
- package/lib/common/actions/global-action-provider.spec.js +0 -70
- package/lib/common/actions/global-action-provider.spec.js.map +0 -1
- package/lib/common/command/command-stack.spec.d.ts +0 -2
- package/lib/common/command/command-stack.spec.d.ts.map +0 -1
- package/lib/common/command/command-stack.spec.js +0 -207
- package/lib/common/command/command-stack.spec.js.map +0 -1
- package/lib/common/command/command.spec.d.ts +0 -2
- package/lib/common/command/command.spec.d.ts.map +0 -1
- package/lib/common/command/command.spec.js +0 -86
- package/lib/common/command/command.spec.js.map +0 -1
- package/lib/common/command/recording-command.spec.d.ts +0 -17
- package/lib/common/command/recording-command.spec.d.ts.map +0 -1
- package/lib/common/command/recording-command.spec.js +0 -62
- package/lib/common/command/recording-command.spec.js.map +0 -1
- package/lib/common/di/binding-target.spec.d.ts +0 -2
- package/lib/common/di/binding-target.spec.d.ts.map +0 -1
- package/lib/common/di/binding-target.spec.js +0 -121
- package/lib/common/di/binding-target.spec.js.map +0 -1
- package/lib/common/di/multi-bindings.spec.d.ts +0 -2
- package/lib/common/di/multi-bindings.spec.d.ts.map +0 -1
- package/lib/common/di/multi-bindings.spec.js +0 -137
- package/lib/common/di/multi-bindings.spec.js.map +0 -1
- package/lib/common/diagram/request-type-hints-action-handler.spec.d.ts +0 -2
- package/lib/common/diagram/request-type-hints-action-handler.spec.d.ts.map +0 -1
- package/lib/common/diagram/request-type-hints-action-handler.spec.js +0 -57
- package/lib/common/diagram/request-type-hints-action-handler.spec.js.map +0 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.d.ts +0 -2
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.d.ts.map +0 -1
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.js +0 -34
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.js.map +0 -1
- package/lib/common/features/contextactions/request-context-actions-handler.spec.d.ts +0 -2
- package/lib/common/features/contextactions/request-context-actions-handler.spec.d.ts.map +0 -1
- package/lib/common/features/contextactions/request-context-actions-handler.spec.js +0 -63
- package/lib/common/features/contextactions/request-context-actions-handler.spec.js.map +0 -1
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.d.ts +0 -2
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.d.ts.map +0 -1
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.js +0 -48
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.js.map +0 -1
- package/lib/common/features/directediting/context-edit-validator-registry.spec.d.ts +0 -2
- package/lib/common/features/directediting/context-edit-validator-registry.spec.d.ts.map +0 -1
- package/lib/common/features/directediting/context-edit-validator-registry.spec.js +0 -44
- package/lib/common/features/directediting/context-edit-validator-registry.spec.js.map +0 -1
- package/lib/common/features/directediting/request-edit-validation-handler.spec.d.ts +0 -2
- package/lib/common/features/directediting/request-edit-validation-handler.spec.d.ts.map +0 -1
- package/lib/common/features/directediting/request-edit-validation-handler.spec.js +0 -97
- package/lib/common/features/directediting/request-edit-validation-handler.spec.js.map +0 -1
- package/lib/common/features/model/gmodel-serializer.spec.d.ts +0 -2
- package/lib/common/features/model/gmodel-serializer.spec.d.ts.map +0 -1
- package/lib/common/features/model/gmodel-serializer.spec.js +0 -124
- package/lib/common/features/model/gmodel-serializer.spec.js.map +0 -1
- package/lib/common/operations/operation-handler-registry.spec.d.ts +0 -2
- package/lib/common/operations/operation-handler-registry.spec.d.ts.map +0 -1
- package/lib/common/operations/operation-handler-registry.spec.js +0 -50
- package/lib/common/operations/operation-handler-registry.spec.js.map +0 -1
- package/lib/common/protocol/glsp-client-proxy.d.ts +0 -45
- package/lib/common/protocol/glsp-client-proxy.d.ts.map +0 -1
- package/lib/common/protocol/glsp-client-proxy.js.map +0 -1
- package/lib/common/protocol/glsp-server-listener.d.ts +0 -37
- package/lib/common/protocol/glsp-server-listener.d.ts.map +0 -1
- package/lib/common/protocol/glsp-server-listener.js +0 -5
- package/lib/common/protocol/glsp-server-listener.js.map +0 -1
- package/lib/common/protocol/glsp-server.spec.d.ts +0 -2
- package/lib/common/protocol/glsp-server.spec.d.ts.map +0 -1
- package/lib/common/protocol/glsp-server.spec.js +0 -119
- package/lib/common/protocol/glsp-server.spec.js.map +0 -1
- package/lib/common/session/client-session-factory.spec.d.ts +0 -2
- package/lib/common/session/client-session-factory.spec.d.ts.map +0 -1
- package/lib/common/session/client-session-factory.spec.js +0 -56
- package/lib/common/session/client-session-factory.spec.js.map +0 -1
- package/lib/common/session/client-session-manager.spec.d.ts +0 -2
- package/lib/common/session/client-session-manager.spec.d.ts.map +0 -1
- package/lib/common/session/client-session-manager.spec.js +0 -74
- package/lib/common/session/client-session-manager.spec.js.map +0 -1
- package/lib/common/test/mock-util.d.ts +0 -123
- package/lib/common/test/mock-util.d.ts.map +0 -1
- package/lib/common/test/mock-util.js +0 -216
- package/lib/common/test/mock-util.js.map +0 -1
- package/lib/common/utils/promise-queue.spec.d.ts +0 -2
- package/lib/common/utils/promise-queue.spec.d.ts.map +0 -1
- package/lib/common/utils/promise-queue.spec.js +0 -117
- package/lib/common/utils/promise-queue.spec.js.map +0 -1
- package/lib/common/utils/registry.spec.d.ts +0 -2
- package/lib/common/utils/registry.spec.d.ts.map +0 -1
- package/lib/common/utils/registry.spec.js +0 -199
- package/lib/common/utils/registry.spec.js.map +0 -1
- package/lib/node/launch/cli-parser.spec.d.ts +0 -2
- package/lib/node/launch/cli-parser.spec.d.ts.map +0 -1
- package/lib/node/launch/cli-parser.spec.js +0 -56
- package/lib/node/launch/cli-parser.spec.js.map +0 -1
- package/lib/node/launch/socket-cli-parser.spec.d.ts +0 -2
- package/lib/node/launch/socket-cli-parser.spec.d.ts.map +0 -1
- package/lib/node/launch/socket-cli-parser.spec.js +0 -66
- package/lib/node/launch/socket-cli-parser.spec.js.map +0 -1
- package/lib/node/launch/socket-server-launcher.spec.d.ts +0 -17
- package/lib/node/launch/socket-server-launcher.spec.d.ts.map +0 -1
- package/lib/node/launch/socket-server-launcher.spec.js +0 -70
- package/lib/node/launch/socket-server-launcher.spec.js.map +0 -1
- package/src/common/protocol/glsp-client-proxy.ts +0 -65
- package/src/common/protocol/glsp-server-listener.ts +0 -39
|
@@ -16,8 +16,8 @@ exports.createClientSessionModule = void 0;
|
|
|
16
16
|
*
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
19
20
|
const inversify_1 = require("inversify");
|
|
20
|
-
const glsp_client_proxy_1 = require("../protocol/glsp-client-proxy");
|
|
21
21
|
const service_identifiers_1 = require("./service-identifiers");
|
|
22
22
|
function createClientSessionModule(clientId, glspClient) {
|
|
23
23
|
return new inversify_1.ContainerModule((bind, _unbind, isBound, rebind) => {
|
|
@@ -27,7 +27,7 @@ function createClientSessionModule(clientId, glspClient) {
|
|
|
27
27
|
else {
|
|
28
28
|
bind(service_identifiers_1.ClientId).toConstantValue(clientId);
|
|
29
29
|
}
|
|
30
|
-
bind(
|
|
30
|
+
bind(protocol_1.GLSPClientProxy).toConstantValue(glspClient);
|
|
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,yCAA4C;AAC5C
|
|
1
|
+
{"version":3,"file":"client-session-module.js","sourceRoot":"","sources":["../../../src/common/di/client-session-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAyD;AACzD,yCAA4C;AAC5C,+DAAiD;AAEjD,SAAgB,yBAAyB,CAAC,QAAgB,EAAE,UAA2B;IACnF,OAAO,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;QAC1D,IAAI,OAAO,CAAC,8BAAQ,CAAC,EAAE;YACnB,MAAM,CAAC,8BAAQ,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;SAC9C;aAAM;YACH,IAAI,CAAC,8BAAQ,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;SAC5C;QACD,IAAI,CAAC,0BAAe,CAAC,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC;AATD,8DASC"}
|
|
@@ -23,6 +23,7 @@ import { NavigationTargetProvider } from '../features/navigation/navigation-targ
|
|
|
23
23
|
import { NavigationTargetProviderRegistry } from '../features/navigation/navigation-target-provider-registry';
|
|
24
24
|
import { NavigationTargetResolver } from '../features/navigation/navigation-target-resolver';
|
|
25
25
|
import { PopupModelFactory } from '../features/popup/popup-model-factory';
|
|
26
|
+
import { ProgressService } from '../features/progress/progress-service';
|
|
26
27
|
import { ModelValidator } from '../features/validation/model-validator';
|
|
27
28
|
import { OperationHandlerConstructor, OperationHandlerFactory } from '../operations/operation-handler';
|
|
28
29
|
import { OperationHandlerRegistry } from '../operations/operation-handler-registry';
|
|
@@ -57,6 +58,7 @@ import { InstanceMultiBinding, MultiBinding } from './multi-binding';
|
|
|
57
58
|
* - {@link ContextActionsProviders} as {@link ClassMultiBinding<ContextActionsProvider>} (empty)
|
|
58
59
|
* - {@link ContextActionsProviderRegistry}
|
|
59
60
|
* - {@link ActionDispatcher}
|
|
61
|
+
* - {@link ProgressService}
|
|
60
62
|
* - {@link ClientActionKinds} as {@link InstanceMultiBinding<string>}
|
|
61
63
|
* - {@link ActionHandler} as {@link InstanceMultiBinding<ActionHandlerConstructor>}
|
|
62
64
|
* - {@link ActionHandlerFactory}
|
|
@@ -96,6 +98,7 @@ export declare abstract class DiagramModule extends GLSPModule {
|
|
|
96
98
|
protected bindOperations(): BindingTarget<string[]>;
|
|
97
99
|
protected bindCommandStack(): BindingTarget<CommandStack>;
|
|
98
100
|
protected configureOperationHandlers(binding: InstanceMultiBinding<OperationHandlerConstructor>): void;
|
|
101
|
+
protected bindProgressService(): BindingTarget<ProgressService>;
|
|
99
102
|
protected configureContextActionProviders(binding: MultiBinding<ContextActionsProvider>): void;
|
|
100
103
|
protected configureContextEditValidators(binding: MultiBinding<ContextEditValidator>): void;
|
|
101
104
|
protected configureNavigationTargetProviders(binding: MultiBinding<NavigationTargetProvider>): void;
|
|
@@ -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":"AAgDA,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;AAE7G,OAAO,EAAE,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,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,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;IAG/E,SAAS,CAAC,gBAAgB,IAAI,aAAa,CAAC,YAAY,CAAC,GAAG,SAAS;CAGxE"}
|
|
@@ -50,6 +50,7 @@ const request_navigation_targets_action_handler_1 = require("../features/navigat
|
|
|
50
50
|
const resolve_navigation_targets_action_handler_1 = require("../features/navigation/resolve-navigation-targets-action-handler");
|
|
51
51
|
const popup_model_factory_1 = require("../features/popup/popup-model-factory");
|
|
52
52
|
const request_popup_model_action_handler_1 = require("../features/popup/request-popup-model-action-handler");
|
|
53
|
+
const progress_service_1 = require("../features/progress/progress-service");
|
|
53
54
|
const model_validator_1 = require("../features/validation/model-validator");
|
|
54
55
|
const request_markers_handler_1 = require("../features/validation/request-markers-handler");
|
|
55
56
|
const compound_operation_handler_1 = require("../operations/compound-operation-handler");
|
|
@@ -88,6 +89,7 @@ const service_identifiers_1 = require("./service-identifiers");
|
|
|
88
89
|
* - {@link ContextActionsProviders} as {@link ClassMultiBinding<ContextActionsProvider>} (empty)
|
|
89
90
|
* - {@link ContextActionsProviderRegistry}
|
|
90
91
|
* - {@link ActionDispatcher}
|
|
92
|
+
* - {@link ProgressService}
|
|
91
93
|
* - {@link ClientActionKinds} as {@link InstanceMultiBinding<string>}
|
|
92
94
|
* - {@link ActionHandler} as {@link InstanceMultiBinding<ActionHandlerConstructor>}
|
|
93
95
|
* - {@link ActionHandlerFactory}
|
|
@@ -150,6 +152,7 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
150
152
|
this.configureMultiBinding(new multi_binding_1.MultiBinding(service_identifiers_1.ContextEditValidators), binding => this.configureContextEditValidators(binding));
|
|
151
153
|
// Misc
|
|
152
154
|
this.configureMultiBinding(new multi_binding_1.MultiBinding(client_session_initializer_1.ClientSessionInitializer), binding => this.configureClientSessionInitializers(binding));
|
|
155
|
+
(0, binding_target_1.applyBindingTarget)(context, progress_service_1.ProgressService, this.bindProgressService()).inSingletonScope();
|
|
153
156
|
(0, binding_target_1.applyOptionalBindingTarget)(context, popup_model_factory_1.PopupModelFactory, this.bindPopupModelFactory());
|
|
154
157
|
(0, binding_target_1.applyOptionalBindingTarget)(context, layout_engine_1.LayoutEngine, (_a = this.bindLayoutEngine) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
155
158
|
}
|
|
@@ -222,6 +225,9 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
222
225
|
binding.add(compound_operation_handler_1.CompoundOperationHandler);
|
|
223
226
|
binding.add(layout_operation_handler_1.LayoutOperationHandler);
|
|
224
227
|
}
|
|
228
|
+
bindProgressService() {
|
|
229
|
+
return progress_service_1.DefaultProgressService;
|
|
230
|
+
}
|
|
225
231
|
configureContextActionProviders(binding) {
|
|
226
232
|
// empty as default
|
|
227
233
|
}
|
|
@@ -233,16 +239,17 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
233
239
|
}
|
|
234
240
|
configureClientActions(binding) {
|
|
235
241
|
binding.add(protocol_1.CenterAction.KIND);
|
|
236
|
-
binding.add(protocol_1.ExportSvgAction.KIND);
|
|
237
242
|
binding.add(protocol_1.DeleteMarkersAction.KIND);
|
|
243
|
+
binding.add(protocol_1.EndProgressAction.KIND);
|
|
244
|
+
binding.add(protocol_1.ExportSvgAction.KIND);
|
|
238
245
|
binding.add(protocol_1.FitToScreenAction.KIND);
|
|
239
|
-
binding.add(protocol_1.SourceModelChangedAction.KIND);
|
|
240
|
-
binding.add(protocol_1.NavigateToTargetAction.KIND);
|
|
241
246
|
binding.add(protocol_1.NavigateToExternalTargetAction.KIND);
|
|
247
|
+
binding.add(protocol_1.NavigateToTargetAction.KIND);
|
|
242
248
|
binding.add(protocol_1.RequestBoundsAction.KIND);
|
|
243
249
|
binding.add(protocol_1.SelectAction.KIND);
|
|
244
250
|
binding.add(protocol_1.SelectAllAction.KIND);
|
|
245
251
|
binding.add(protocol_1.ServerMessageAction.KIND);
|
|
252
|
+
binding.add(protocol_1.ServerStatusAction.KIND);
|
|
246
253
|
binding.add(protocol_1.SetBoundsAction.KIND);
|
|
247
254
|
binding.add(protocol_1.SetClipboardDataAction.KIND);
|
|
248
255
|
binding.add(protocol_1.SetContextActions.KIND);
|
|
@@ -256,10 +263,12 @@ class DiagramModule extends glsp_module_1.GLSPModule {
|
|
|
256
263
|
binding.add(protocol_1.SetResolvedNavigationTargetAction.KIND);
|
|
257
264
|
binding.add(protocol_1.SetTypeHintsAction.KIND);
|
|
258
265
|
binding.add(protocol_1.SetViewportAction.KIND);
|
|
259
|
-
binding.add(protocol_1.
|
|
260
|
-
binding.add(protocol_1.
|
|
266
|
+
binding.add(protocol_1.SourceModelChangedAction.KIND);
|
|
267
|
+
binding.add(protocol_1.StartProgressAction.KIND);
|
|
261
268
|
binding.add(protocol_1.TriggerEdgeCreationAction.KIND);
|
|
269
|
+
binding.add(protocol_1.TriggerNodeCreationAction.KIND);
|
|
262
270
|
binding.add(protocol_1.UpdateModelAction.KIND);
|
|
271
|
+
binding.add(protocol_1.UpdateProgressAction.KIND);
|
|
263
272
|
}
|
|
264
273
|
bindContextActionsProviderRegistry() {
|
|
265
274
|
return context_actions_provider_registry_1.ContextActionsProviderRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagram-module.js","sourceRoot":"","sources":["../../../src/common/di/diagram-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"diagram-module.js","sourceRoot":"","sources":["../../../src/common/di/diagram-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAgCgC;AAEhC,oEAAyF;AACzF,8DAA2F;AAC3F,gFAA6G;AAC7G,4EAAuE;AACvE,4DAA6E;AAC7E,kFAA4E;AAC5E,4EAAwE;AACxE,oGAA6F;AAC7F,gHAA0G;AAE1G,oHAA8G;AAC9G,sGAAgG;AAChG,gHAA0G;AAC1G,sGAAgI;AAEhI,+GAGmE;AACnE,yFAAoF;AACpF,+GAAyG;AACzG,sGAAgG;AAChG,oEA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;QACpC,OAAO,CAAC,GAAG,CAAC,mCAAwB,CAAC,IAAI,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,8BAAmB,CAAC,IAAI,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,oCAAyB,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,oCAAyB,CAAC,IAAI,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,4BAAiB,CAAC,IAAI,CAAC,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,+BAAoB,CAAC,IAAI,CAAC,CAAC;IAC3C,CAAC;IAES,kCAAkC;QACxC,OAAO,kEAA8B,CAAC;IAC1C,CAAC;IAyBD,oBAAoB;IAEV,kBAAkB;QACxB,OAAO,SAAS,CAAC;IACrB,CAAC;IACS,sBAAsB;QAC5B,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,2BAA2B;QACjC,OAAO,2DAA8B,CAAC;IAC1C,CAAC;IACS,gCAAgC;QACtC,OAAO,SAAS,CAAC;IACrB,CAAC;IACS,2BAA2B;QACjC,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,4BAA4B;QAClC,OAAO,SAAS,CAAC;IACrB,CAAC;IAES,qBAAqB;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;IACS,gBAAgB;QACtB,OAAO,SAAS,CAAC;IACrB,CAAC;;AAtQL,sCAuQC;AAtQmB,gCAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
import { BindingContext } from '@eclipse-glsp/protocol';
|
|
16
17
|
import { ContainerModule, interfaces } from 'inversify';
|
|
17
18
|
import { AbstractMultiBinding } from './multi-binding';
|
|
18
19
|
/**
|
|
19
20
|
* A wrapper interface to get access to the binding related functions
|
|
20
21
|
* for a inversify container.
|
|
22
|
+
* @deprecated Use `BindingContext` from `@eclipse-glsp/protocol` instead
|
|
21
23
|
*/
|
|
22
24
|
export interface ModuleContext {
|
|
23
25
|
bind: interfaces.Bind;
|
|
@@ -30,7 +32,7 @@ export interface ModuleContext {
|
|
|
30
32
|
*/
|
|
31
33
|
export declare abstract class GLSPModule extends ContainerModule {
|
|
32
34
|
static CLIENT_ACTIONS: string;
|
|
33
|
-
protected context:
|
|
35
|
+
protected context: BindingContext;
|
|
34
36
|
constructor();
|
|
35
37
|
protected abstract configure(bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind): void;
|
|
36
38
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/glsp-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAc,UAAU,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD
|
|
1
|
+
{"version":3,"file":"glsp-module.d.ts","sourceRoot":"","sources":["../../../src/common/di/glsp-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAc,UAAU,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;IACtB,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC;IAC1B,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;IAC5B,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,8BACsB,UAAW,SAAQ,eAAe;IACpD,OAAc,cAAc,SAAmB;IAE/C,SAAS,CAAC,OAAO,EAAE,cAAc,CAAC;;IASlC,SAAS,CAAC,QAAQ,CAAC,SAAS,CACxB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,MAAM,EAAE,UAAU,CAAC,MAAM,EACzB,OAAO,EAAE,UAAU,CAAC,OAAO,EAC3B,MAAM,EAAE,UAAU,CAAC,MAAM,GAC1B,IAAI;IAEP;;;;;;;;OAQG;IACH,SAAS,CAAC,qBAAqB,CAAC,CAAC,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,IAAI;CAIvI"}
|
|
@@ -10,26 +10,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GLSPModule = void 0;
|
|
13
|
-
/********************************************************************************
|
|
14
|
-
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
15
|
-
*
|
|
16
|
-
* This program and the accompanying materials are made available under the
|
|
17
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
18
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
19
|
-
*
|
|
20
|
-
* This Source Code may also be made available under the following Secondary
|
|
21
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
22
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
23
|
-
* with the GNU Classpath Exception which is available at
|
|
24
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
25
|
-
*
|
|
26
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
|
-
********************************************************************************/
|
|
28
13
|
const inversify_1 = require("inversify");
|
|
29
14
|
/**
|
|
30
15
|
* Common super class for GLSP {@link ContainerModule}s.
|
|
31
16
|
*/
|
|
32
|
-
let GLSPModule = class GLSPModule extends inversify_1.ContainerModule {
|
|
17
|
+
let GLSPModule = exports.GLSPModule = class GLSPModule extends inversify_1.ContainerModule {
|
|
33
18
|
constructor() {
|
|
34
19
|
super((bind, unbind, isBound, rebind) => {
|
|
35
20
|
this.context = { bind, unbind, isBound, rebind };
|
|
@@ -51,9 +36,8 @@ let GLSPModule = class GLSPModule extends inversify_1.ContainerModule {
|
|
|
51
36
|
}
|
|
52
37
|
};
|
|
53
38
|
GLSPModule.CLIENT_ACTIONS = 'ClientActions';
|
|
54
|
-
GLSPModule = __decorate([
|
|
39
|
+
exports.GLSPModule = GLSPModule = __decorate([
|
|
55
40
|
(0, inversify_1.injectable)(),
|
|
56
41
|
__metadata("design:paramtypes", [])
|
|
57
42
|
], GLSPModule);
|
|
58
|
-
exports.GLSPModule = GLSPModule;
|
|
59
43
|
//# sourceMappingURL=glsp-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glsp-module.js","sourceRoot":"","sources":["../../../src/common/di/glsp-module.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"glsp-module.js","sourceRoot":"","sources":["../../../src/common/di/glsp-module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,yCAAoE;AAepE;;GAEG;AAEI,IAAe,UAAU,wBAAzB,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;;AA9Ba,yBAAc,GAAG,eAAe,AAAlB,CAAmB;qBAD7B,UAAU;IAD/B,IAAA,sBAAU,GAAE;;GACS,UAAU,CAgC/B"}
|
|
@@ -1,5 +1,20 @@
|
|
|
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
|
+
********************************************************************************/
|
|
16
|
+
import { BindingContext } from '@eclipse-glsp/protocol';
|
|
1
17
|
import { BindingTarget } from './binding-target';
|
|
2
|
-
import { ModuleContext } from './glsp-module';
|
|
3
18
|
/**
|
|
4
19
|
* A helper class used in `GLSPModules` to ease the configuration of multi-injected service identifiers.
|
|
5
20
|
* Instead of directly binding to the service identifier a new multi binding object can be created. This object
|
|
@@ -11,7 +26,7 @@ export declare abstract class AbstractMultiBinding<T> {
|
|
|
11
26
|
readonly identifier: string | symbol;
|
|
12
27
|
protected bindings: T[];
|
|
13
28
|
constructor(identifier: string | symbol);
|
|
14
|
-
abstract applyBindings(context:
|
|
29
|
+
abstract applyBindings(context: BindingContext): void;
|
|
15
30
|
add(newBinding: T): void;
|
|
16
31
|
addAll(newBindings: T[]): void;
|
|
17
32
|
addAll(...newBindings: T[]): void;
|
|
@@ -27,7 +42,7 @@ export declare abstract class AbstractMultiBinding<T> {
|
|
|
27
42
|
* @typeparam T the base type of {@link BindingTarget}.
|
|
28
43
|
*/
|
|
29
44
|
export declare class MultiBinding<T> extends AbstractMultiBinding<BindingTarget<T>> {
|
|
30
|
-
applyBindings(context:
|
|
45
|
+
applyBindings(context: BindingContext): void;
|
|
31
46
|
}
|
|
32
47
|
/**
|
|
33
48
|
* Implementation of {@link AbstractMultiBinding} for multi-injected values that should be bound to concrete instance using the
|
|
@@ -36,6 +51,6 @@ export declare class MultiBinding<T> extends AbstractMultiBinding<BindingTarget<
|
|
|
36
51
|
* * @typeparam T the type of the instances
|
|
37
52
|
*/
|
|
38
53
|
export declare class InstanceMultiBinding<T> extends AbstractMultiBinding<T> {
|
|
39
|
-
applyBindings(context:
|
|
54
|
+
applyBindings(context: BindingContext): void;
|
|
40
55
|
}
|
|
41
56
|
//# sourceMappingURL=multi-binding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-binding.d.ts","sourceRoot":"","sources":["../../../src/common/di/multi-binding.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"multi-binding.d.ts","sourceRoot":"","sources":["../../../src/common/di/multi-binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,cAAc,EAA6C,MAAM,wBAAwB,CAAC;AACnG,OAAO,EAAsB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAErE;;;;;;GAMG;AACH,8BAAsB,oBAAoB,CAAC,CAAC;IAG5B,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAFhD,SAAS,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAM;gBAER,UAAU,EAAE,MAAM,GAAG,MAAM;IAEhD,QAAQ,CAAC,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAErD,GAAG,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI;IAIxB,MAAM,CAAC,WAAW,EAAE,CAAC,EAAE,GAAG,IAAI;IAC9B,MAAM,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE,GAAG,IAAI;IAOjC,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI;IAIzB,SAAS,CAAC,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI;IAI9B,MAAM,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,IAAI;IAK1C,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO;IAI7B,MAAM,IAAI,CAAC,EAAE;CAGhB;AAED;;;;GAIG;AACH,qBAAa,YAAY,CAAC,CAAC,CAAE,SAAQ,oBAAoB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IACvE,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;CAG/C;AAED;;;;;GAKG;AACH,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,oBAAoB,CAAC,CAAC,CAAC;IAChE,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;CAG/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multi-binding.js","sourceRoot":"","sources":["../../../src/common/di/multi-binding.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"multi-binding.js","sourceRoot":"","sources":["../../../src/common/di/multi-binding.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAmG;AACnG,qDAAqE;AAErE;;;;;;GAMG;AACH,MAAsB,oBAAoB;IAGtC,YAAqB,UAA2B;QAA3B,eAAU,GAAV,UAAU,CAAiB;QAFtC,aAAQ,GAAQ,EAAE,CAAC;IAEsB,CAAC;IAIpD,GAAG,CAAC,UAAa;QACb,IAAA,sBAAW,EAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IAC3C,CAAC;IAID,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,CAAC,CAAC;IACjE,CAAC;CACJ;AAJD,oDAIC"}
|
|
@@ -13,11 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
+
import { GLSPServer, GLSPServerListener } from '@eclipse-glsp/protocol';
|
|
16
17
|
import { ContainerModule, interfaces } from 'inversify';
|
|
17
18
|
import { GlobalActionProvider } from '../actions/global-action-provider';
|
|
18
|
-
import { GLSPClientProxy, JsonRpcGLSPClientProxy } from '../protocol/glsp-client-proxy';
|
|
19
|
-
import { GLSPServer, JsonRpcGLSPServer } from '../protocol/glsp-server';
|
|
20
|
-
import { GLSPServerListener } from '../protocol/glsp-server-listener';
|
|
21
19
|
import { ClientSessionFactory } from '../session/client-session-factory';
|
|
22
20
|
import { ClientSessionManager } from '../session/client-session-manager';
|
|
23
21
|
import { BindingTarget } from './binding-target';
|
|
@@ -61,13 +59,10 @@ export declare class ServerModule extends GLSPModule {
|
|
|
61
59
|
configure(bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind): void;
|
|
62
60
|
protected bindDiagramModules(): BindingTarget<Map<string, ContainerModule[]>>;
|
|
63
61
|
protected bindGLSPServer(): BindingTarget<GLSPServer>;
|
|
64
|
-
protected bindJsonRpcGLSPServer(): BindingTarget<JsonRpcGLSPServer>;
|
|
65
62
|
protected bindClientSessionFactory(): BindingTarget<ClientSessionFactory>;
|
|
66
63
|
protected bindClientSessionManager(): BindingTarget<ClientSessionManager>;
|
|
67
64
|
protected bindGlobalActionProvider(): BindingTarget<GlobalActionProvider>;
|
|
68
65
|
protected bindInjectionContainer(): BindingTarget<interfaces.Container>;
|
|
69
|
-
protected bindGLSPClientProxy(): BindingTarget<GLSPClientProxy>;
|
|
70
|
-
protected bindJsonRpcGLSPClientProxy(): BindingTarget<JsonRpcGLSPClientProxy>;
|
|
71
66
|
protected configureGLSPServerListeners(binding: MultiBinding<GLSPServerListener>): void;
|
|
72
67
|
}
|
|
73
68
|
//# sourceMappingURL=server-module.d.ts.map
|
|
@@ -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,
|
|
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;;;;;;;;;;;;;;;;;;GAkBG;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"}
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServerModule = 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");
|
|
4
20
|
const global_action_provider_1 = require("../actions/global-action-provider");
|
|
5
|
-
const glsp_client_proxy_1 = require("../protocol/glsp-client-proxy");
|
|
6
21
|
const glsp_server_1 = require("../protocol/glsp-server");
|
|
7
|
-
const glsp_server_listener_1 = require("../protocol/glsp-server-listener");
|
|
8
22
|
const client_session_factory_1 = require("../session/client-session-factory");
|
|
9
23
|
const client_session_manager_1 = require("../session/client-session-manager");
|
|
10
24
|
const binding_target_1 = require("./binding-target");
|
|
@@ -57,15 +71,14 @@ class ServerModule extends glsp_module_1.GLSPModule {
|
|
|
57
71
|
configure(bind, unbind, isBound, rebind) {
|
|
58
72
|
const context = this.context;
|
|
59
73
|
(0, binding_target_1.applyBindingTarget)(context, service_identifiers_1.DiagramModules, this.bindDiagramModules());
|
|
60
|
-
(0, binding_target_1.applyBindingTarget)(context,
|
|
61
|
-
(0, binding_target_1.applyBindingTarget)(context, glsp_server_1.JsonRpcGLSPServer, this.bindJsonRpcGLSPServer());
|
|
74
|
+
(0, binding_target_1.applyBindingTarget)(context, protocol_1.GLSPServer, this.bindGLSPServer()).inSingletonScope();
|
|
62
75
|
(0, binding_target_1.applyBindingTarget)(context, client_session_factory_1.ClientSessionFactory, this.bindClientSessionFactory()).inSingletonScope();
|
|
63
76
|
(0, binding_target_1.applyBindingTarget)(context, client_session_manager_1.ClientSessionManager, this.bindClientSessionManager()).inSingletonScope();
|
|
64
|
-
this.configureMultiBinding(new multi_binding_1.MultiBinding(
|
|
77
|
+
this.configureMultiBinding(new multi_binding_1.MultiBinding(protocol_1.GLSPServerListener), binding => this.configureGLSPServerListeners(binding));
|
|
65
78
|
(0, binding_target_1.applyBindingTarget)(context, global_action_provider_1.GlobalActionProvider, this.bindGlobalActionProvider()).inSingletonScope();
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
79
|
+
if (!isBound(service_identifiers_1.InjectionContainer)) {
|
|
80
|
+
(0, binding_target_1.applyBindingTarget)(context, service_identifiers_1.InjectionContainer, this.bindInjectionContainer());
|
|
81
|
+
}
|
|
69
82
|
}
|
|
70
83
|
bindDiagramModules() {
|
|
71
84
|
return { constantValue: this.diagramModules };
|
|
@@ -73,9 +86,6 @@ class ServerModule extends glsp_module_1.GLSPModule {
|
|
|
73
86
|
bindGLSPServer() {
|
|
74
87
|
return glsp_server_1.DefaultGLSPServer;
|
|
75
88
|
}
|
|
76
|
-
bindJsonRpcGLSPServer() {
|
|
77
|
-
return { service: glsp_server_1.GLSPServer };
|
|
78
|
-
}
|
|
79
89
|
bindClientSessionFactory() {
|
|
80
90
|
return client_session_factory_1.DefaultClientSessionFactory;
|
|
81
91
|
}
|
|
@@ -88,12 +98,6 @@ class ServerModule extends glsp_module_1.GLSPModule {
|
|
|
88
98
|
bindInjectionContainer() {
|
|
89
99
|
return { dynamicValue: context => context.container };
|
|
90
100
|
}
|
|
91
|
-
bindGLSPClientProxy() {
|
|
92
|
-
return glsp_client_proxy_1.DefaultGLSPClientProxy;
|
|
93
|
-
}
|
|
94
|
-
bindJsonRpcGLSPClientProxy() {
|
|
95
|
-
return { service: glsp_client_proxy_1.GLSPClientProxy };
|
|
96
|
-
}
|
|
97
101
|
configureGLSPServerListeners(binding) {
|
|
98
102
|
binding.add({ service: client_session_manager_1.ClientSessionManager });
|
|
99
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-module.js","sourceRoot":"","sources":["../../../src/common/di/server-module.ts"],"names":[],"mappings":";;;
|
|
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;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,YAAa,SAAQ,wBAAU;IA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C,CAAC,gBAAgB,EAAE,CAAC;QAEtG,IAAI,CAAC,OAAO,CAAC,wCAAkB,CAAC,EAAE;YAC9B,IAAA,mCAAkB,EAAC,OAAO,EAAE,wCAAkB,EAAE,IAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC;SAClF;IACL,CAAC;IAES,kBAAkB;QACxB,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,CAAC;IAClD,CAAC;IAES,cAAc;QACpB,OAAO,+BAAiB,CAAC;IAC7B,CAAC;IAES,wBAAwB;QAC9B,OAAO,oDAA2B,CAAC;IACvC,CAAC;IAES,wBAAwB;QAC9B,OAAO,oDAA2B,CAAC;IACvC,CAAC;IAES,wBAAwB;QAC9B,OAAO,oDAA2B,CAAC;IACvC,CAAC;IAES,sBAAsB;QAC5B,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;IAC1D,CAAC;IAES,4BAA4B,CAAC,OAAyC;QAC5E,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,6CAAoB,EAAE,CAAC,CAAC;IACnD,CAAC;;AApEL,oCAqEC;AApEiB,4BAAe,GAAG,iBAAiB,AAApB,CAAqB"}
|
|
@@ -25,6 +25,6 @@ var ServerLayoutKind;
|
|
|
25
25
|
* information is stored in the model.
|
|
26
26
|
*/
|
|
27
27
|
ServerLayoutKind[ServerLayoutKind["NONE"] = 2] = "NONE";
|
|
28
|
-
})(ServerLayoutKind
|
|
28
|
+
})(ServerLayoutKind || (exports.ServerLayoutKind = ServerLayoutKind = {}));
|
|
29
29
|
exports.DiagramConfiguration = Symbol('DiagramConfiguration');
|
|
30
30
|
//# sourceMappingURL=diagram-configuration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagram-configuration.js","sourceRoot":"","sources":["../../../src/common/diagram/diagram-configuration.ts"],"names":[],"mappings":";;;AAkBA;;;;;GAKG;AACH,IAAY,gBAmBX;AAnBD,WAAY,gBAAgB;IACxB;;;OAGG;IACH,iEAAS,CAAA;IAET;;;;OAIG;IACH,2DAAM,CAAA;IAEN;;;OAGG;IACH,uDAAI,CAAA;AACR,CAAC,EAnBW,gBAAgB,
|
|
1
|
+
{"version":3,"file":"diagram-configuration.js","sourceRoot":"","sources":["../../../src/common/diagram/diagram-configuration.ts"],"names":[],"mappings":";;;AAkBA;;;;;GAKG;AACH,IAAY,gBAmBX;AAnBD,WAAY,gBAAgB;IACxB;;;OAGG;IACH,iEAAS,CAAA;IAET;;;;OAIG;IACH,2DAAM,CAAA;IAEN;;;OAGG;IACH,uDAAI,CAAA;AACR,CAAC,EAnBW,gBAAgB,gCAAhB,gBAAgB,QAmB3B;AAEY,QAAA,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC"}
|
|
@@ -28,7 +28,7 @@ exports.RequestTypeHintsActionHandler = void 0;
|
|
|
28
28
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const diagram_configuration_1 = require("./diagram-configuration");
|
|
31
|
-
let RequestTypeHintsActionHandler = class RequestTypeHintsActionHandler {
|
|
31
|
+
let RequestTypeHintsActionHandler = exports.RequestTypeHintsActionHandler = class RequestTypeHintsActionHandler {
|
|
32
32
|
constructor() {
|
|
33
33
|
this.actionKinds = [protocol_1.RequestTypeHintsAction.KIND];
|
|
34
34
|
}
|
|
@@ -46,8 +46,7 @@ __decorate([
|
|
|
46
46
|
(0, inversify_1.inject)(diagram_configuration_1.DiagramConfiguration),
|
|
47
47
|
__metadata("design:type", Object)
|
|
48
48
|
], RequestTypeHintsActionHandler.prototype, "diagramConfiguration", void 0);
|
|
49
|
-
RequestTypeHintsActionHandler = __decorate([
|
|
49
|
+
exports.RequestTypeHintsActionHandler = RequestTypeHintsActionHandler = __decorate([
|
|
50
50
|
(0, inversify_1.injectable)()
|
|
51
51
|
], RequestTypeHintsActionHandler);
|
|
52
|
-
exports.RequestTypeHintsActionHandler = RequestTypeHintsActionHandler;
|
|
53
52
|
//# sourceMappingURL=request-type-hints-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-type-hints-action-handler.js","sourceRoot":"","sources":["../../../src/common/diagram/request-type-hints-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA0G;AAC1G,yCAA+C;AAE/C,mEAA+D;AAGxD,IAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"request-type-hints-action-handler.js","sourceRoot":"","sources":["../../../src/common/diagram/request-type-hints-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA0G;AAC1G,yCAA+C;AAE/C,mEAA+D;AAGxD,IAAM,6BAA6B,2CAAnC,MAAM,6BAA6B;IAAnC;QAaM,gBAAW,GAAG,CAAC,iCAAsB,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAVG,OAAO,CAAC,MAA8B;QAClC,OAAO;YACH,6BAAkB,CAAC,MAAM,CAAC;gBACtB,UAAU,EAAE,IAAI,CAAC,oBAAoB,CAAC,cAAc;gBACpD,SAAS,EAAE,IAAI,CAAC,oBAAoB,CAAC,aAAa;aACrD,CAAC;SACL,CAAC;IACN,CAAC;;AATM,mCAAK,GAAG,CAAC,iCAAsB,CAAC,IAAI,CAAC,AAAhC,CAAiC;AADL;IAAvC,IAAA,kBAAM,EAAC,4CAAoB,CAAC;;2EAAsD;wCAD1E,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAczC"}
|
|
@@ -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 = class RequestClipboardDataActionHandler {
|
|
32
|
+
let RequestClipboardDataActionHandler = exports.RequestClipboardDataActionHandler = class RequestClipboardDataActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.RequestClipboardDataAction.KIND];
|
|
35
35
|
}
|
|
@@ -54,8 +54,7 @@ __decorate([
|
|
|
54
54
|
(0, inversify_1.inject)(gmodel_serializer_1.GModelSerializer),
|
|
55
55
|
__metadata("design:type", Object)
|
|
56
56
|
], RequestClipboardDataActionHandler.prototype, "modelSerializer", void 0);
|
|
57
|
-
RequestClipboardDataActionHandler = __decorate([
|
|
57
|
+
exports.RequestClipboardDataActionHandler = RequestClipboardDataActionHandler = __decorate([
|
|
58
58
|
(0, inversify_1.injectable)()
|
|
59
59
|
], RequestClipboardDataActionHandler);
|
|
60
|
-
exports.RequestClipboardDataActionHandler = RequestClipboardDataActionHandler;
|
|
61
60
|
//# sourceMappingURL=request-clipboard-data-action-handler.js.map
|
|
@@ -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,+CAAvC,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;AAjBa;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 = class CommandPaletteActionProvider {
|
|
18
|
+
let CommandPaletteActionProvider = exports.CommandPaletteActionProvider = class CommandPaletteActionProvider {
|
|
19
19
|
constructor() {
|
|
20
20
|
this.TEXT = 'text';
|
|
21
21
|
this.INDEX = 'index';
|
|
@@ -65,8 +65,7 @@ __decorate([
|
|
|
65
65
|
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
66
66
|
__metadata("design:type", Object)
|
|
67
67
|
], CommandPaletteActionProvider.prototype, "modelState", void 0);
|
|
68
|
-
CommandPaletteActionProvider = __decorate([
|
|
68
|
+
exports.CommandPaletteActionProvider = CommandPaletteActionProvider = __decorate([
|
|
69
69
|
(0, inversify_1.injectable)()
|
|
70
70
|
], CommandPaletteActionProvider);
|
|
71
|
-
exports.CommandPaletteActionProvider = CommandPaletteActionProvider;
|
|
72
71
|
//# sourceMappingURL=command-palette-action-provider.js.map
|
|
@@ -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,0CAA3C,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;AAlEa;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 = class ContextActionsProviderRegistry extends registry_1.Registry {
|
|
40
|
+
let ContextActionsProviderRegistry = exports.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,7 +52,7 @@ let ContextActionsProviderRegistry = class ContextActionsProviderRegistry extend
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
ContextActionsProviderRegistry = __decorate([
|
|
55
|
+
exports.ContextActionsProviderRegistry = ContextActionsProviderRegistry = __decorate([
|
|
56
56
|
(0, inversify_1.injectable)(),
|
|
57
57
|
__param(0, (0, inversify_1.multiInject)(service_identifiers_1.ContextActionsProviders)),
|
|
58
58
|
__param(0, (0, inversify_1.optional)()),
|
|
@@ -66,5 +66,4 @@ ContextActionsProviderRegistry = __decorate([
|
|
|
66
66
|
command_palette_action_provider_1.CommandPaletteActionProvider,
|
|
67
67
|
tool_palette_item_provider_1.ToolPaletteItemProvider])
|
|
68
68
|
], ContextActionsProviderRegistry);
|
|
69
|
-
exports.ContextActionsProviderRegistry = ContextActionsProviderRegistry;
|
|
70
69
|
//# sourceMappingURL=context-actions-provider-registry.js.map
|
|
@@ -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,4CAApC,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;yCAnBY,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 = class ContextMenuItemProvider {
|
|
14
|
+
let ContextMenuItemProvider = exports.ContextMenuItemProvider = class ContextMenuItemProvider {
|
|
15
15
|
/**
|
|
16
16
|
* Returns the context id of the {@link ContextMenuItemProvider}.
|
|
17
17
|
*/
|
|
@@ -29,8 +29,7 @@ let ContextMenuItemProvider = class ContextMenuItemProvider {
|
|
|
29
29
|
return this.getItems(editorContext.selectedElementIds, position, editorContext.args);
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
ContextMenuItemProvider = __decorate([
|
|
32
|
+
exports.ContextMenuItemProvider = ContextMenuItemProvider = __decorate([
|
|
33
33
|
(0, inversify_1.injectable)()
|
|
34
34
|
], ContextMenuItemProvider);
|
|
35
|
-
exports.ContextMenuItemProvider = ContextMenuItemProvider;
|
|
36
35
|
//# sourceMappingURL=context-menu-item-provider.js.map
|