@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":"request-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/request-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"request-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/request-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkF;AAClF,yCAA+C;AAC/C,uEAAmE;AAEnE,yEAAoE;AACpE,+CAA4C;AAC5C,mEAAgF;AAChF,+CAA2C;AAC3C,yEAAoE;AACpE,iEAA4D;AAGrD,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QACH,gBAAW,GAAG,CAAC,6BAAkB,CAAC,IAAI,CAAC,CAAC;IA0D5C,CAAC;IAtCG,KAAK,CAAC,OAAO,CAAC,MAA0B;;QACpC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,MAAA,MAAM,CAAC,OAAO,mCAAI,EAAE,CAAC,CAAC;QAE7C,MAAM,cAAc,GAAG,uCAAiB,CAAC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAExE,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,CAAC;QAEtE,IAAI,cAAc,EAAE;YAChB,MAAM,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACtC;aAAM;YACH,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACzD;QACD,IAAI,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;QAE1C,OAAO,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;IAES,KAAK,CAAC,eAAe,CAAC,MAA0B;;QACtD,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAC1C,IAAI,YAAY,EAAE;YACd,oEAAoE;YACpE,8EAA8E;YAC9E,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,MAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,mCAAI,CAAC,CAAC,GAAG,CAAC,CAAC;SAC5E;aAAM;YACH,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;SACzD;IACL,CAAC;IAES,kBAAkB,CAAC,OAAe;QACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,uBAAY,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QACnF,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAES,0BAA0B,CAAC,OAAwB;QACzD,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,uBAAY,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,EAAE,CAAC;IAClB,CAAC;CACJ,CAAA;AA3DY,8DAAyB;AAI1B;IADP,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACC,eAAM;yDAAC;AAGb;IADT,IAAA,kBAAM,EAAC,yCAAkB,CAAC;;qEACsB;AAGvC;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;mEACoB;AAGnC;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;6DACc;AAGvB;IADT,IAAA,kBAAM,EAAC,iDAAsB,CAAC;8BACF,iDAAsB;oEAAC;AAG1C;IADT,IAAA,kBAAM,EAAC,kCAAe,CAAC;;kEACmB;oCAnBlC,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CA2DrC"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const command_stack_1 = require("../../command/command-stack");
|
|
31
31
|
const source_model_storage_1 = require("./source-model-storage");
|
|
32
|
-
let SaveModelActionHandler =
|
|
32
|
+
let SaveModelActionHandler = class SaveModelActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.SaveModelAction.KIND];
|
|
35
35
|
}
|
|
@@ -39,6 +39,7 @@ let SaveModelActionHandler = exports.SaveModelActionHandler = class SaveModelAct
|
|
|
39
39
|
return [protocol_1.SetDirtyStateAction.create(this.commandStack.isDirty, { reason: 'save' })];
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
+
exports.SaveModelActionHandler = SaveModelActionHandler;
|
|
42
43
|
__decorate([
|
|
43
44
|
(0, inversify_1.inject)(command_stack_1.CommandStack),
|
|
44
45
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/save-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsF;AACtF,yCAA+C;AAE/C,+DAA2D;AAC3D,iEAA4D;AAGrD,IAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"save-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/model/save-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsF;AACtF,yCAA+C;AAE/C,+DAA2D;AAC3D,iEAA4D;AAGrD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAA5B;QACH,gBAAW,GAAG,CAAC,0BAAe,CAAC,IAAI,CAAC,CAAC;IAazC,CAAC;IALG,KAAK,CAAC,OAAO,CAAC,MAAuB;QACjC,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,CAAC;QAC/B,OAAO,CAAC,8BAAmB,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IACvF,CAAC;CACJ,CAAA;AAdY,wDAAsB;AAIrB;IADT,IAAA,kBAAM,EAAC,4BAAY,CAAC;;4DACgB;AAG3B;IADT,IAAA,kBAAM,EAAC,yCAAkB,CAAC;;kEACsB;iCAPxC,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAclC"}
|
|
@@ -32,12 +32,13 @@ const inversify_1 = require("inversify");
|
|
|
32
32
|
const service_identifiers_1 = require("../../di/service-identifiers");
|
|
33
33
|
const registry_1 = require("../../utils/registry");
|
|
34
34
|
exports.NavigationTargetProviderRegistry = Symbol('NavigationTargetProviderRegistry');
|
|
35
|
-
let DefaultNavigationTargetProviderRegistry =
|
|
35
|
+
let DefaultNavigationTargetProviderRegistry = class DefaultNavigationTargetProviderRegistry extends registry_1.Registry {
|
|
36
36
|
constructor(navigationTargetProviders = []) {
|
|
37
37
|
super();
|
|
38
38
|
navigationTargetProviders.forEach(provider => this.register(provider.targetTypeId, provider));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
+
exports.DefaultNavigationTargetProviderRegistry = DefaultNavigationTargetProviderRegistry;
|
|
41
42
|
exports.DefaultNavigationTargetProviderRegistry = DefaultNavigationTargetProviderRegistry = __decorate([
|
|
42
43
|
__param(0, (0, inversify_1.multiInject)(service_identifiers_1.NavigationTargetProviders)),
|
|
43
44
|
__param(0, (0, inversify_1.optional)()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-provider-registry.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-provider-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAkD;AAClD,sEAAyE;AACzE,mDAAgD;AAGnC,QAAA,gCAAgC,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;AAO3F,IAAa,uCAAuC,
|
|
1
|
+
{"version":3,"file":"navigation-target-provider-registry.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-provider-registry.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAkD;AAClD,sEAAyE;AACzE,mDAAgD;AAGnC,QAAA,gCAAgC,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAAC;AAO3F,IAAa,uCAAuC,GAApD,MAAa,uCACT,SAAQ,mBAA0C;IAGlD,YAAgE,4BAAwD,EAAE;QACtH,KAAK,EAAE,CAAC;QACR,yBAAyB,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC,CAAC;IAClG,CAAC;CACJ,CAAA;AARY,0FAAuC;kDAAvC,uCAAuC;IAInC,WAAA,IAAA,uBAAW,EAAC,+CAAyB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;;GAJtD,uCAAuC,CAQnD"}
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.NavigationTargetResolver = void 0;
|
|
10
10
|
const inversify_1 = require("inversify");
|
|
11
|
-
let NavigationTargetResolver =
|
|
11
|
+
let NavigationTargetResolver = class NavigationTargetResolver {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.INFO = 'info';
|
|
14
14
|
this.WARNING = 'warning';
|
|
@@ -42,6 +42,7 @@ let NavigationTargetResolver = exports.NavigationTargetResolver = class Navigati
|
|
|
42
42
|
args[this.ERROR] = message;
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
+
exports.NavigationTargetResolver = NavigationTargetResolver;
|
|
45
46
|
exports.NavigationTargetResolver = NavigationTargetResolver = __decorate([
|
|
46
47
|
(0, inversify_1.injectable)()
|
|
47
48
|
], NavigationTargetResolver);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-target-resolver.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAIhC,IAAe,wBAAwB,
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAIhC,IAAe,wBAAwB,GAAvC,MAAe,wBAAwB;IAAvC;QACM,SAAI,GAAG,MAAM,CAAC;QACd,YAAO,GAAG,SAAS,CAAC;QACpB,UAAK,GAAG,OAAO,CAAC;IAqC7B,CAAC;IAjCG,UAAU;QACN,OAAO,EAAE,CAAC;IACd,CAAC;IAED,kBAAkB,CAAC,OAAe;QAC9B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,qBAAqB,CAAC,OAAe;QACjC,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,mBAAmB,CAAC,OAAe;QAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;QAC/B,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,OAAe,EAAE,IAAU;QAC/B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;IAC9B,CAAC;IAED,UAAU,CAAC,OAAe,EAAE,IAAU;QAClC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;IACjC,CAAC;IAED,QAAQ,CAAC,OAAe,EAAE,IAAU;QAChC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC;IAC/B,CAAC;CACJ,CAAA;AAxCqB,4DAAwB;mCAAxB,wBAAwB;IAD7C,IAAA,sBAAU,GAAE;GACS,wBAAwB,CAwC7C"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const inject_1 = require("inversify/lib/annotation/inject");
|
|
31
31
|
const navigation_target_provider_registry_1 = require("./navigation-target-provider-registry");
|
|
32
|
-
let RequestNavigationTargetsActionHandler =
|
|
32
|
+
let RequestNavigationTargetsActionHandler = class RequestNavigationTargetsActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.RequestNavigationTargetsAction.KIND];
|
|
35
35
|
}
|
|
@@ -44,6 +44,7 @@ let RequestNavigationTargetsActionHandler = exports.RequestNavigationTargetsActi
|
|
|
44
44
|
return [protocol_1.SetNavigationTargetsAction.create(allTargets, { args: editorContext.args })];
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
|
+
exports.RequestNavigationTargetsActionHandler = RequestNavigationTargetsActionHandler;
|
|
47
48
|
__decorate([
|
|
48
49
|
(0, inject_1.inject)(navigation_target_provider_registry_1.NavigationTargetProviderRegistry),
|
|
49
50
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/request-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4I;AAC5I,yCAAuC;AACvC,4DAAyD;AAEzD,+FAAyF;AAGlF,IAAM,qCAAqC,
|
|
1
|
+
{"version":3,"file":"request-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/request-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4I;AAC5I,yCAAuC;AACvC,4DAAyD;AAEzD,+FAAyF;AAGlF,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAA3C;QACH,gBAAW,GAAG,CAAC,yCAA8B,CAAC,IAAI,CAAC,CAAC;IAexD,CAAC;IAVG,OAAO,CAAC,MAAsC;QAC1C,MAAM,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC3C,MAAM,UAAU,GAAuB,EAAE,CAAC;QAC1C,MAAM,QAAQ,GAAG,IAAI,CAAC,gCAAgC,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAChF,IAAI,QAAQ,EAAE;YACV,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;YACnD,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;SACtD;QACD,OAAO,CAAC,qCAA0B,CAAC,MAAM,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACzF,CAAC;CACJ,CAAA;AAhBY,sFAAqC;AAIpC;IADT,IAAA,eAAM,EAAC,sEAAgC,CAAC;;+FACoC;gDAJpE,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAgBjD"}
|
|
@@ -29,7 +29,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const logger_1 = require("../../utils/logger");
|
|
31
31
|
const navigation_target_resolver_1 = require("./navigation-target-resolver");
|
|
32
|
-
let ResolveNavigationTargetsActionHandler =
|
|
32
|
+
let ResolveNavigationTargetsActionHandler = class ResolveNavigationTargetsActionHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
this.actionKinds = [protocol_1.ResolveNavigationTargetAction.KIND];
|
|
35
35
|
}
|
|
@@ -43,6 +43,7 @@ let ResolveNavigationTargetsActionHandler = exports.ResolveNavigationTargetsActi
|
|
|
43
43
|
return [protocol_1.SetResolvedNavigationTargetAction.create(resolution.elementIds, { args: resolution.args })];
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.ResolveNavigationTargetsActionHandler = ResolveNavigationTargetsActionHandler;
|
|
46
47
|
__decorate([
|
|
47
48
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
48
49
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/resolve-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkH;AAClH,yCAAyD;AAEzD,+CAA4C;AAC5C,6EAAwE;AAGjE,IAAM,qCAAqC,
|
|
1
|
+
{"version":3,"file":"resolve-navigation-targets-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/navigation/resolve-navigation-targets-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAkH;AAClH,yCAAyD;AAEzD,+CAA4C;AAC5C,6EAAwE;AAGjE,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAA3C;QACH,gBAAW,GAAG,CAAC,wCAA6B,CAAC,IAAI,CAAC,CAAC;IAkBvD,CAAC;IATG,KAAK,CAAC,OAAO,CAAC,MAAqC;QAC/C,IAAI,CAAC,IAAI,CAAC,wBAAwB,EAAE;YAChC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qGAAqG,CAAC,CAAC;YACxH,OAAO,EAAE,CAAC;SACb;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,gBAAgB,CAAC;QACvC,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACvE,OAAO,CAAC,4CAAiC,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IACxG,CAAC;CACJ,CAAA;AAnBY,sFAAqC;AAIpC;IADT,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACG,eAAM;qEAAC;AAIN;IAFlB,IAAA,kBAAM,EAAC,qDAAwB,CAAC;IAChC,IAAA,oBAAQ,GAAE;8BACkC,qDAAwB;uFAAC;gDAR7D,qCAAqC;IADjD,IAAA,sBAAU,GAAE;GACA,qCAAqC,CAmBjD"}
|
|
@@ -32,7 +32,7 @@ const logger_1 = require("../../utils/logger");
|
|
|
32
32
|
const gmodel_serializer_1 = require("../model/gmodel-serializer");
|
|
33
33
|
const model_state_1 = require("../model/model-state");
|
|
34
34
|
const popup_model_factory_1 = require("./popup-model-factory");
|
|
35
|
-
let RequestPopupModelActionHandler =
|
|
35
|
+
let RequestPopupModelActionHandler = class RequestPopupModelActionHandler {
|
|
36
36
|
constructor() {
|
|
37
37
|
this.actionKinds = [protocol_1.RequestPopupModelAction.KIND];
|
|
38
38
|
}
|
|
@@ -53,6 +53,7 @@ let RequestPopupModelActionHandler = exports.RequestPopupModelActionHandler = cl
|
|
|
53
53
|
return [];
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
+
exports.RequestPopupModelActionHandler = RequestPopupModelActionHandler;
|
|
56
57
|
__decorate([
|
|
57
58
|
(0, inversify_1.inject)(logger_1.Logger),
|
|
58
59
|
__metadata("design:type", logger_1.Logger)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-popup-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/popup/request-popup-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4G;AAC5G,yCAAyD;AAEzD,qEAAgE;AAChE,+CAA4C;AAC5C,kEAA8D;AAC9D,sDAAkD;AAClD,+DAA0D;AAGnD,IAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"request-popup-model-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/popup/request-popup-model-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA4G;AAC5G,yCAAyD;AAEzD,qEAAgE;AAChE,+CAA4C;AAC5C,kEAA8D;AAC9D,sDAAkD;AAClD,+DAA0D;AAGnD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAApC;QAcH,gBAAW,GAAG,CAAC,kCAAuB,CAAC,IAAI,CAAC,CAAC;IAoBjD,CAAC;IAlBG,OAAO,CAAC,MAA+B;QACnC,IAAI,IAAI,CAAC,iBAAiB,EAAE;YACxB,MAAM,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;YAClE,IAAI,YAAY,EAAE;gBACd,MAAM,UAAU,GAAG,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;gBACjF,IAAI,UAAU,EAAE;oBACZ,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;oBAClE,OAAO,CAAC,8BAAmB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;iBACpD;gBACD,OAAO,EAAE,CAAC;aACb;YACD,MAAM,IAAI,mCAAe,CAAC,sEAAsE,MAAM,CAAC,SAAS,YAAY,CAAC,CAAC;SACjI;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,8EAA8E,CAAC,CAAC;QACjG,OAAO,EAAE,CAAC;IACd,CAAC;CAGJ,CAAA;AAlCY,wEAA8B;AAE7B;IADT,IAAA,kBAAM,EAAC,eAAM,CAAC;8BACG,eAAM;8DAAC;AAIf;IAFT,IAAA,kBAAM,EAAC,uCAAiB,CAAC;IACzB,IAAA,oBAAQ,GAAE;;yEACqC;AAGtC;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;kEACc;AAGvB;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;uEACmB;yCAZnC,8BAA8B;IAD1C,IAAA,sBAAU,GAAE;GACA,8BAA8B,CAkC1C"}
|
|
@@ -30,7 +30,7 @@ const inversify_1 = require("inversify");
|
|
|
30
30
|
const uuid = require("uuid");
|
|
31
31
|
const action_dispatcher_1 = require("../../actions/action-dispatcher");
|
|
32
32
|
exports.ProgressService = Symbol('ProgressService');
|
|
33
|
-
let DefaultProgressService =
|
|
33
|
+
let DefaultProgressService = class DefaultProgressService {
|
|
34
34
|
start(title, options) {
|
|
35
35
|
const progressId = uuid.v4();
|
|
36
36
|
this.actionDispatcher.dispatch(protocol_1.StartProgressAction.create(Object.assign({ progressId, title }, options)));
|
|
@@ -40,6 +40,7 @@ let DefaultProgressService = exports.DefaultProgressService = class DefaultProgr
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
+
exports.DefaultProgressService = DefaultProgressService;
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, inversify_1.inject)(action_dispatcher_1.ActionDispatcher),
|
|
45
46
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-service.js","sourceRoot":"","sources":["../../../../src/common/features/progress/progress-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsG;AACtG,yCAA+C;AAC/C,6BAA6B;AAC7B,uEAAmE;AAEtD,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAyClD,IAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"progress-service.js","sourceRoot":"","sources":["../../../../src/common/features/progress/progress-service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsG;AACtG,yCAA+C;AAC/C,6BAA6B;AAC7B,uEAAmE;AAEtD,QAAA,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAyClD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAI/B,KAAK,CAAC,KAAa,EAAE,OAAyB;QAC1C,MAAM,UAAU,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7B,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,8BAAmB,CAAC,MAAM,iBAAG,UAAU,EAAE,KAAK,IAAK,OAAO,EAAG,CAAC,CAAC;QAC9F,OAAO;YACH,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,+BAAoB,CAAC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;YAC/G,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,4BAAiB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;SAClF,CAAC;IACN,CAAC;CACJ,CAAA;AAZY,wDAAsB;AAErB;IADT,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;gEACoB;iCAFpC,sBAAsB;IADlC,IAAA,sBAAU,GAAE;GACA,sBAAsB,CAYlC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource 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 { GModelElement } from '@eclipse-glsp/graph';
|
|
17
|
+
/**
|
|
18
|
+
* Optional service used to check the validity of an edge being created. Used in combination with `dynamic`
|
|
19
|
+
* `EdgeTypeHints`.
|
|
20
|
+
* A dynamic edge type hint is used for cases where a plain list of allowed source and target element ids is not enough
|
|
21
|
+
* to determine wether an edge being created is valid. In this cases the client will query the server to determine wether the edge
|
|
22
|
+
* is valid. The `EdgeCreationChecker` then checks the given edge information and returns wether the edge being created is
|
|
23
|
+
* valid.
|
|
24
|
+
*/
|
|
25
|
+
export interface EdgeCreationChecker {
|
|
26
|
+
/**
|
|
27
|
+
* Checks wether the given source element for an edge being created is valid i.e. if the
|
|
28
|
+
* given source is and allowed source element for the given edge type.
|
|
29
|
+
*
|
|
30
|
+
* @returns `true` if the edge source is valid, `false` otherwise
|
|
31
|
+
*/
|
|
32
|
+
isValidSource(edgeType: string, sourceElement: GModelElement): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Checks wether the given information for an edge being created is valid i.e. if the
|
|
35
|
+
* given target is an allowed target for the given source and edge type.
|
|
36
|
+
*
|
|
37
|
+
* @return `true` if the edge target is valid, `false` otherwise
|
|
38
|
+
*/
|
|
39
|
+
isValidTarget(edgeType: string, sourceElement: GModelElement, targetElement: GModelElement): boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const EdgeCreationChecker: unique symbol;
|
|
42
|
+
//# sourceMappingURL=edge-creation-checker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-creation-checker.d.ts","sourceRoot":"","sources":["../../../../src/common/features/type-hints/edge-creation-checker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;;;;GAOG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC;IAEvE;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC;CACxG;AACD,eAAO,MAAM,mBAAmB,eAAgC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.EdgeCreationChecker = void 0;
|
|
19
|
+
exports.EdgeCreationChecker = Symbol('EdgeCreationChecker');
|
|
20
|
+
//# sourceMappingURL=edge-creation-checker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-creation-checker.js","sourceRoot":"","sources":["../../../../src/common/features/type-hints/edge-creation-checker.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AA6BrE,QAAA,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource 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 { Action, MaybePromise, RequestCheckEdgeAction } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { ActionHandler } from '../../actions/action-handler';
|
|
18
|
+
import { DiagramConfiguration } from '../../diagram/diagram-configuration';
|
|
19
|
+
import { ModelState } from '../model/model-state';
|
|
20
|
+
import { EdgeCreationChecker } from './edge-creation-checker';
|
|
21
|
+
export declare class RequestCheckEdgeActionHandler implements ActionHandler {
|
|
22
|
+
protected modelState: ModelState;
|
|
23
|
+
protected diagramConfiguration: DiagramConfiguration;
|
|
24
|
+
protected edgeCreationChecker?: EdgeCreationChecker;
|
|
25
|
+
readonly actionKinds: string[];
|
|
26
|
+
execute(action: RequestCheckEdgeAction): MaybePromise<Action[]>;
|
|
27
|
+
protected validate(action: RequestCheckEdgeAction): boolean;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=request-check-edge-action-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-check-edge-action-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/type-hints/request-check-edge-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAyB,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAE7G,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,qBACa,6BAA8B,YAAW,aAAa;IAE/D,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAGjC,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAIrD,SAAS,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAEpD,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAiC;IAE/D,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;IAQ/D,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO;CAgB9D"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RequestCheckEdgeActionHandler = void 0;
|
|
13
|
+
/********************************************************************************
|
|
14
|
+
* Copyright (c) 2023 EclipseSource 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
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
|
+
const inversify_1 = require("inversify");
|
|
30
|
+
const diagram_configuration_1 = require("../../diagram/diagram-configuration");
|
|
31
|
+
const glsp_server_error_1 = require("../../utils/glsp-server-error");
|
|
32
|
+
const model_state_1 = require("../model/model-state");
|
|
33
|
+
const edge_creation_checker_1 = require("./edge-creation-checker");
|
|
34
|
+
let RequestCheckEdgeActionHandler = class RequestCheckEdgeActionHandler {
|
|
35
|
+
constructor() {
|
|
36
|
+
this.actionKinds = [protocol_1.RequestCheckEdgeAction.KIND];
|
|
37
|
+
}
|
|
38
|
+
execute(action) {
|
|
39
|
+
const hasDynamicHint = this.diagramConfiguration.edgeTypeHints.some(hint => hint.elementTypeId === action.edgeType && hint.dynamic);
|
|
40
|
+
const { edgeType, sourceElementId, targetElementId } = action;
|
|
41
|
+
const isValid = this.edgeCreationChecker && hasDynamicHint ? this.validate(action) : true;
|
|
42
|
+
return [protocol_1.CheckEdgeResultAction.create({ edgeType, isValid, sourceElementId, targetElementId })];
|
|
43
|
+
}
|
|
44
|
+
validate(action) {
|
|
45
|
+
const sourceElement = (0, glsp_server_error_1.getOrThrow)(this.modelState.index.get(action.sourceElementId), 'Invalid `RequestCheckEdgeTargetAction`!. Could not find a source element with id: ' + action.sourceElementId);
|
|
46
|
+
const targetElement = action.targetElementId ? this.modelState.index.get(action.targetElementId) : undefined;
|
|
47
|
+
if (action.targetElementId && !targetElement) {
|
|
48
|
+
throw new glsp_server_error_1.GLSPServerError('Invalid `RequestCheckEdgeTargetAction`! Could not find a target element with id: ' + action.targetElementId);
|
|
49
|
+
}
|
|
50
|
+
return targetElement
|
|
51
|
+
? this.edgeCreationChecker.isValidTarget(action.edgeType, sourceElement, targetElement)
|
|
52
|
+
: this.edgeCreationChecker.isValidSource(action.edgeType, sourceElement);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.RequestCheckEdgeActionHandler = RequestCheckEdgeActionHandler;
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], RequestCheckEdgeActionHandler.prototype, "modelState", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, inversify_1.inject)(diagram_configuration_1.DiagramConfiguration),
|
|
62
|
+
__metadata("design:type", Object)
|
|
63
|
+
], RequestCheckEdgeActionHandler.prototype, "diagramConfiguration", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, inversify_1.inject)(edge_creation_checker_1.EdgeCreationChecker),
|
|
66
|
+
(0, inversify_1.optional)(),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], RequestCheckEdgeActionHandler.prototype, "edgeCreationChecker", void 0);
|
|
69
|
+
exports.RequestCheckEdgeActionHandler = RequestCheckEdgeActionHandler = __decorate([
|
|
70
|
+
(0, inversify_1.injectable)()
|
|
71
|
+
], RequestCheckEdgeActionHandler);
|
|
72
|
+
//# sourceMappingURL=request-check-edge-action-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-check-edge-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/type-hints/request-check-edge-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA6G;AAC7G,yCAAyD;AAEzD,+EAA2E;AAC3E,qEAA4E;AAC5E,sDAAkD;AAClD,mEAA8D;AAGvD,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAAnC;QAWM,gBAAW,GAAa,CAAC,iCAAsB,CAAC,IAAI,CAAC,CAAC;IA0BnE,CAAC;IAxBG,OAAO,CAAC,MAA8B;QAClC,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,KAAK,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC;QACpI,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;QAC9D,MAAM,OAAO,GAAG,IAAI,CAAC,mBAAmB,IAAI,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAE1F,OAAO,CAAC,gCAAqB,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,CAAC,CAAC,CAAC;IACnG,CAAC;IAES,QAAQ,CAAC,MAA8B;QAC7C,MAAM,aAAa,GAAG,IAAA,8BAAU,EAC5B,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,EACjD,oFAAoF,GAAG,MAAM,CAAC,eAAe,CAChH,CAAC;QACF,MAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE7G,IAAI,MAAM,CAAC,eAAe,IAAI,CAAC,aAAa,EAAE;YAC1C,MAAM,IAAI,mCAAe,CACrB,mFAAmF,GAAG,MAAM,CAAC,eAAe,CAC/G,CAAC;SACL;QACD,OAAO,aAAa;YAChB,CAAC,CAAC,IAAI,CAAC,mBAAoB,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,EAAE,aAAa,CAAC;YACxF,CAAC,CAAC,IAAI,CAAC,mBAAoB,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAClF,CAAC;CACJ,CAAA;AArCY,sEAA6B;AAE5B;IADT,IAAA,kBAAM,EAAC,wBAAU,CAAC;;iEACc;AAGvB;IADT,IAAA,kBAAM,EAAC,4CAAoB,CAAC;;2EACwB;AAI3C;IAFT,IAAA,kBAAM,EAAC,2CAAmB,CAAC;IAC3B,IAAA,oBAAQ,GAAE;;0EACyC;wCAT3C,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAqCzC"}
|
|
@@ -14,11 +14,10 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Action, MaybePromise, RequestTypeHintsAction } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { ActionHandler } from '
|
|
18
|
-
import { DiagramConfiguration } from '
|
|
17
|
+
import { ActionHandler } from '../../actions/action-handler';
|
|
18
|
+
import { DiagramConfiguration } from '../../diagram/diagram-configuration';
|
|
19
19
|
export declare class RequestTypeHintsActionHandler implements ActionHandler {
|
|
20
20
|
protected diagramConfiguration: DiagramConfiguration;
|
|
21
|
-
static KINDS: string[];
|
|
22
21
|
execute(action: RequestTypeHintsAction): MaybePromise<Action[]>;
|
|
23
22
|
readonly actionKinds: string[];
|
|
24
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-type-hints-action-handler.d.ts","sourceRoot":"","sources":["../../../../src/common/features/type-hints/request-type-hints-action-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,sBAAsB,EAAsB,MAAM,wBAAwB,CAAC;AAE1G,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,qBACa,6BAA8B,YAAW,aAAa;IACjC,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IAEnF,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC;IAS/D,QAAQ,CAAC,WAAW,WAAiC;CACxD"}
|
|
@@ -27,8 +27,8 @@ exports.RequestTypeHintsActionHandler = void 0;
|
|
|
27
27
|
********************************************************************************/
|
|
28
28
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
|
-
const diagram_configuration_1 = require("
|
|
31
|
-
let RequestTypeHintsActionHandler =
|
|
30
|
+
const diagram_configuration_1 = require("../../diagram/diagram-configuration");
|
|
31
|
+
let RequestTypeHintsActionHandler = class RequestTypeHintsActionHandler {
|
|
32
32
|
constructor() {
|
|
33
33
|
this.actionKinds = [protocol_1.RequestTypeHintsAction.KIND];
|
|
34
34
|
}
|
|
@@ -41,7 +41,7 @@ let RequestTypeHintsActionHandler = exports.RequestTypeHintsActionHandler = clas
|
|
|
41
41
|
];
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
RequestTypeHintsActionHandler
|
|
44
|
+
exports.RequestTypeHintsActionHandler = RequestTypeHintsActionHandler;
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, inversify_1.inject)(diagram_configuration_1.DiagramConfiguration),
|
|
47
47
|
__metadata("design:type", Object)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-type-hints-action-handler.js","sourceRoot":"","sources":["../../../../src/common/features/type-hints/request-type-hints-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA0G;AAC1G,yCAA+C;AAE/C,+EAA2E;AAGpE,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAAnC;QAYM,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;CAGJ,CAAA;AAbY,sEAA6B;AACE;IAAvC,IAAA,kBAAM,EAAC,4CAAoB,CAAC;;2EAAsD;wCAD1E,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CAazC"}
|
|
@@ -10,7 +10,7 @@ exports.AbstractModelValidator = exports.ModelValidator = void 0;
|
|
|
10
10
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
11
11
|
const inversify_1 = require("inversify");
|
|
12
12
|
exports.ModelValidator = Symbol('ModelValidator');
|
|
13
|
-
let AbstractModelValidator =
|
|
13
|
+
let AbstractModelValidator = class AbstractModelValidator {
|
|
14
14
|
validate(elements, reason) {
|
|
15
15
|
const markers = [];
|
|
16
16
|
for (const element of elements) {
|
|
@@ -77,6 +77,7 @@ let AbstractModelValidator = exports.AbstractModelValidator = class AbstractMode
|
|
|
77
77
|
return [];
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
|
+
exports.AbstractModelValidator = AbstractModelValidator;
|
|
80
81
|
exports.AbstractModelValidator = AbstractModelValidator = __decorate([
|
|
81
82
|
(0, inversify_1.injectable)()
|
|
82
83
|
], AbstractModelValidator);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-validator.js","sourceRoot":"","sources":["../../../../src/common/features/validation/model-validator.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,qDAA6E;AAC7E,yCAAuC;AAE1B,QAAA,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAmBhD,IAAe,sBAAsB,
|
|
1
|
+
{"version":3,"file":"model-validator.js","sourceRoot":"","sources":["../../../../src/common/features/validation/model-validator.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,qDAA6E;AAC7E,yCAAuC;AAE1B,QAAA,cAAc,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAmBhD,IAAe,sBAAsB,GAArC,MAAe,sBAAsB;IACxC,QAAQ,CAAC,QAAyB,EAAE,MAAc;QAC9C,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC5B,IAAI,wBAAa,CAAC,IAAI,KAAK,MAAM,EAAE;gBAC/B,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;aACnD;iBAAM,IAAI,wBAAa,CAAC,KAAK,KAAK,MAAM,EAAE;gBACvC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;aACpD;iBAAM;gBACH,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC,CAAC;aAC9D;YACD,IAAI,OAAO,CAAC,QAAQ,EAAE;gBAClB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;aAC5D;SACJ;QACD,OAAO,OAAO,CAAC;IACnB,CAAC;IAED;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,OAAsB;QACnC,OAAO,EAAE,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,OAAsB;QACpC,OAAO,EAAE,CAAC;IACd,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,2BAA2B,CAAC,OAAsB;QAC9C,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAnEqB,wDAAsB;iCAAtB,sBAAsB;IAD3C,IAAA,sBAAU,GAAE;GACS,sBAAsB,CAmE3C"}
|
|
@@ -30,7 +30,7 @@ const inversify_1 = require("inversify");
|
|
|
30
30
|
const glsp_server_error_1 = require("../../utils/glsp-server-error");
|
|
31
31
|
const model_state_1 = require("../model/model-state");
|
|
32
32
|
const model_validator_1 = require("./model-validator");
|
|
33
|
-
let RequestMarkersHandler =
|
|
33
|
+
let RequestMarkersHandler = class RequestMarkersHandler {
|
|
34
34
|
constructor() {
|
|
35
35
|
this.actionKinds = [protocol_1.RequestMarkersAction.KIND];
|
|
36
36
|
}
|
|
@@ -48,6 +48,7 @@ let RequestMarkersHandler = exports.RequestMarkersHandler = class RequestMarkers
|
|
|
48
48
|
return [protocol_1.SetMarkersAction.create(markers)];
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
+
exports.RequestMarkersHandler = RequestMarkersHandler;
|
|
51
52
|
__decorate([
|
|
52
53
|
(0, inversify_1.inject)(model_validator_1.ModelValidator),
|
|
53
54
|
(0, inversify_1.optional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request-markers-handler.js","sourceRoot":"","sources":["../../../../src/common/features/validation/request-markers-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuG;AACvG,yCAAyD;AAEzD,qEAAgE;AAChE,sDAAkD;AAClD,uDAAmD;AAG5C,IAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"request-markers-handler.js","sourceRoot":"","sources":["../../../../src/common/features/validation/request-markers-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuG;AACvG,yCAAyD;AAEzD,qEAAgE;AAChE,sDAAkD;AAClD,uDAAmD;AAG5C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAA3B;QACH,gBAAW,GAAG,CAAC,+BAAoB,CAAC,IAAI,CAAC,CAAC;IAoB9C,CAAC;IAfG,KAAK,CAAC,OAAO,CAAC,MAA4B;;QACtC,IAAI,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjB,MAAM,IAAI,mCAAe,CAAC,6EAA6E,CAAC,CAAC;SAC5G;QAED,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,EAAE;YAClG,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;SAC1C;QAED,MAAM,aAAa,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAC/D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAA,MAAM,CAAC,MAAM,mCAAI,wBAAa,CAAC,KAAK,CAAC,CAAC;QAEnG,OAAO,CAAC,2BAAgB,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAC9C,CAAC;CACJ,CAAA;AArBY,sDAAqB;AAGM;IAAnC,IAAA,kBAAM,EAAC,gCAAc,CAAC;IAAE,IAAA,oBAAQ,GAAE;;wDAA2B;AAC1C;IAAnB,IAAA,kBAAM,EAAC,wBAAU,CAAC;;yDAAwB;gCAJlC,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAqBjC"}
|
|
@@ -27,7 +27,7 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
27
27
|
const inversify_1 = require("inversify");
|
|
28
28
|
const glsp_server_error_1 = require("../utils/glsp-server-error");
|
|
29
29
|
const gmodel_operation_handler_1 = require("./gmodel-operation-handler");
|
|
30
|
-
let GModelApplyLabelEditOperationHandler =
|
|
30
|
+
let GModelApplyLabelEditOperationHandler = class GModelApplyLabelEditOperationHandler extends gmodel_operation_handler_1.GModelOperationHandler {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
33
33
|
this.operationType = protocol_1.ApplyLabelEditOperation.KIND;
|
|
@@ -39,6 +39,7 @@ let GModelApplyLabelEditOperationHandler = exports.GModelApplyLabelEditOperation
|
|
|
39
39
|
: undefined;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
+
exports.GModelApplyLabelEditOperationHandler = GModelApplyLabelEditOperationHandler;
|
|
42
43
|
exports.GModelApplyLabelEditOperationHandler = GModelApplyLabelEditOperationHandler = __decorate([
|
|
43
44
|
(0, inversify_1.injectable)()
|
|
44
45
|
], GModelApplyLabelEditOperationHandler);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-label-edit-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/apply-label-edit-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAA6C;AAC7C,qDAA+E;AAC/E,yCAAuC;AAEvC,kEAAwD;AACxD,yEAAoE;AAG7D,IAAM,oCAAoC,
|
|
1
|
+
{"version":3,"file":"apply-label-edit-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/apply-label-edit-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAA6C;AAC7C,qDAA+E;AAC/E,yCAAuC;AAEvC,kEAAwD;AACxD,yEAAoE;AAG7D,IAAM,oCAAoC,GAA1C,MAAM,oCAAqC,SAAQ,iDAAsB;IAAzE;;QACM,kBAAa,GAAG,kCAAuB,CAAC,IAAI,CAAC;IAW1D,CAAC;IATG,aAAa,CAAC,SAAkC;QAC5C,MAAM,KAAK,GAAG,IAAA,8BAAU,EACpB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,EAAE,cAAM,CAAC,EAC5D,6DAA6D,CAChE,CAAC;QACF,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,EAAE;YACnC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;YACrD,CAAC,CAAC,SAAS,CAAC;IACpB,CAAC;CACJ,CAAA;AAZY,oFAAoC;+CAApC,oCAAoC;IADhD,IAAA,sBAAU,GAAE;GACA,oCAAoC,CAYhD"}
|
|
@@ -29,7 +29,7 @@ const gmodel_operation_handler_1 = require("./gmodel-operation-handler");
|
|
|
29
29
|
/**
|
|
30
30
|
* Applies {@link ChangeBoundsOperation} directly to the GModel.
|
|
31
31
|
*/
|
|
32
|
-
let GModelChangeBoundsOperationHandler =
|
|
32
|
+
let GModelChangeBoundsOperationHandler = class GModelChangeBoundsOperationHandler extends gmodel_operation_handler_1.GModelOperationHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
this.operationType = protocol_1.ChangeBoundsOperation.KIND;
|
|
@@ -64,6 +64,7 @@ let GModelChangeBoundsOperationHandler = exports.GModelChangeBoundsOperationHand
|
|
|
64
64
|
nodeToUpdate.position = positionToSet;
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
|
+
exports.GModelChangeBoundsOperationHandler = GModelChangeBoundsOperationHandler;
|
|
67
68
|
exports.GModelChangeBoundsOperationHandler = GModelChangeBoundsOperationHandler = __decorate([
|
|
68
69
|
(0, inversify_1.injectable)()
|
|
69
70
|
], GModelChangeBoundsOperationHandler);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-bounds-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/change-bounds-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAAwD;AACxD,qDAA+F;AAC/F,yCAAuC;AAEvC,yEAAoE;AAEpE;;GAEG;AAEI,IAAM,kCAAkC,
|
|
1
|
+
{"version":3,"file":"change-bounds-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/change-bounds-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAAwD;AACxD,qDAA+F;AAC/F,yCAAuC;AAEvC,yEAAoE;AAEpE;;GAEG;AAEI,IAAM,kCAAkC,GAAxC,MAAM,kCAAmC,SAAQ,iDAAsB;IAAvE;;QACH,kBAAa,GAAG,gCAAqB,CAAC,IAAI,CAAC;IAmC/C,CAAC;IAjCG,aAAa,CAAC,SAAgC;QAC1C,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC;IACrE,CAAC;IAES,mBAAmB,CAAC,SAAgC;QAC1D,KAAK,MAAM,OAAO,IAAI,SAAS,CAAC,SAAS,EAAE;YACvC,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;SACrF;IACL,CAAC;IAES,mBAAmB,CAAC,SAAiB,EAAE,OAAkB,EAAE,WAA8B;QAC/F,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QACpC,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE,aAAK,CAAC,CAAC;QACzD,IAAI,CAAC,YAAY,EAAE;YACf,OAAO;SACV;QAED,MAAM,MAAM,GAAG,YAAY,CAAC,MAAM,CAAC;QACnC,IAAI,aAAa,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACnC,IAAI,WAAW,EAAE;YACb,aAAa,GAAG,MAAM,YAAY,kBAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;SACjI;QACD,IAAI,YAAY,CAAC,MAAM,EAAE;YACrB,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE;gBAC7B,YAAY,CAAC,aAAa,GAAG,EAAE,CAAC;aACnC;YACD,YAAY,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;YACxD,YAAY,CAAC,aAAa,CAAC,YAAY,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC;SAC7D;QAED,YAAY,CAAC,IAAI,GAAG,OAAO,CAAC;QAC5B,YAAY,CAAC,QAAQ,GAAG,aAAa,CAAC;IAC1C,CAAC;CACJ,CAAA;AApCY,gFAAkC;6CAAlC,kCAAkC;IAD9C,IAAA,sBAAU,GAAE;GACA,kCAAkC,CAoC9C"}
|
|
@@ -27,7 +27,7 @@ const inversify_1 = require("inversify");
|
|
|
27
27
|
const glsp_server_error_1 = require("../utils/glsp-server-error");
|
|
28
28
|
const layout_util_1 = require("../utils/layout-util");
|
|
29
29
|
const gmodel_operation_handler_1 = require("./gmodel-operation-handler");
|
|
30
|
-
let GModelChangeRoutingPointsOperationHandler =
|
|
30
|
+
let GModelChangeRoutingPointsOperationHandler = class GModelChangeRoutingPointsOperationHandler extends gmodel_operation_handler_1.GModelOperationHandler {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments);
|
|
33
33
|
this.operationType = protocol_1.ChangeRoutingPointsOperation.KIND;
|
|
@@ -43,6 +43,7 @@ let GModelChangeRoutingPointsOperationHandler = exports.GModelChangeRoutingPoint
|
|
|
43
43
|
operation.newRoutingPoints.forEach(routingPoints => (0, layout_util_1.applyRoutingPoints)(routingPoints, index));
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
exports.GModelChangeRoutingPointsOperationHandler = GModelChangeRoutingPointsOperationHandler;
|
|
46
47
|
exports.GModelChangeRoutingPointsOperationHandler = GModelChangeRoutingPointsOperationHandler = __decorate([
|
|
47
48
|
(0, inversify_1.injectable)()
|
|
48
49
|
], GModelChangeRoutingPointsOperationHandler);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-routing-points-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/change-routing-points-operation-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,qDAAoF;AACpF,yCAAuC;AAEvC,kEAA6D;AAC7D,sDAA0D;AAC1D,yEAAoE;AAG7D,IAAM,yCAAyC,
|
|
1
|
+
{"version":3,"file":"change-routing-points-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/change-routing-points-operation-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;AAElF,qDAAoF;AACpF,yCAAuC;AAEvC,kEAA6D;AAC7D,sDAA0D;AAC1D,yEAAoE;AAG7D,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,iDAAsB;IAA9E;;QACH,kBAAa,GAAG,uCAA4B,CAAC,IAAI,CAAC;IActD,CAAC;IAZG,aAAa,CAAC,SAAuC;QACjD,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,0BAA0B,CAAC,SAAuC;QAC9D,IAAI,CAAC,SAAS,CAAC,gBAAgB,EAAE;YAC7B,MAAM,IAAI,mCAAe,CAAC,yCAAyC,CAAC,CAAC;SACxE;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QACpC,SAAS,CAAC,gBAAgB,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,IAAA,gCAAkB,EAAC,aAAa,EAAE,KAAK,CAAC,CAAC,CAAC;IAClG,CAAC;CACJ,CAAA;AAfY,8FAAyC;oDAAzC,yCAAyC;IADrD,IAAA,sBAAU,GAAE;GACA,yCAAyC,CAerD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cut-operation-handler.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/cut-operation-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,YAAY,EAA0B,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBACa,yBAA0B,SAAQ,sBAAsB;IACjE,QAAQ,CAAC,aAAa,SAAqB;IAG3C,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE7C,aAAa,CAAC,SAAS,EAAE,YAAY,GAAG,YAAY,CAAC,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"cut-operation-handler.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/cut-operation-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,YAAY,EAA0B,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBACa,yBAA0B,SAAQ,sBAAsB;IACjE,QAAQ,CAAC,aAAa,SAAqB;IAG3C,SAAS,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE7C,aAAa,CAAC,SAAS,EAAE,YAAY,GAAG,YAAY,CAAC,OAAO,GAAG,SAAS,CAAC;IASzE,SAAS,CAAC,eAAe,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,EAAE;CAGlE"}
|
|
@@ -29,21 +29,24 @@ const protocol_1 = require("@eclipse-glsp/protocol");
|
|
|
29
29
|
const inversify_1 = require("inversify");
|
|
30
30
|
const action_dispatcher_1 = require("../actions/action-dispatcher");
|
|
31
31
|
const gmodel_operation_handler_1 = require("./gmodel-operation-handler");
|
|
32
|
-
let GModelCutOperationHandler =
|
|
32
|
+
let GModelCutOperationHandler = class GModelCutOperationHandler extends gmodel_operation_handler_1.GModelOperationHandler {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
35
|
this.operationType = protocol_1.CutOperation.KIND;
|
|
36
36
|
}
|
|
37
37
|
createCommand(operation) {
|
|
38
38
|
const cuttableElementIds = this.getElementToCut(operation);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
// If we have cuttable elements we dispatch a DeleteElementOperation otherwise do nothing
|
|
40
|
+
if (cuttableElementIds.length > 0) {
|
|
41
|
+
this.actionDispatcher.dispatch(protocol_1.DeleteElementOperation.create(cuttableElementIds));
|
|
42
|
+
}
|
|
43
|
+
return undefined;
|
|
42
44
|
}
|
|
43
45
|
getElementToCut(cutOperation) {
|
|
44
46
|
return cutOperation.editorContext.selectedElementIds;
|
|
45
47
|
}
|
|
46
48
|
};
|
|
49
|
+
exports.GModelCutOperationHandler = GModelCutOperationHandler;
|
|
47
50
|
__decorate([
|
|
48
51
|
(0, inversify_1.inject)(action_dispatcher_1.ActionDispatcher),
|
|
49
52
|
__metadata("design:type", Object)
|