@eclipse-glsp/client 2.2.0-next.342 → 2.2.0-next.344
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/base/default.module.d.ts.map +1 -1
- package/lib/base/default.module.js +2 -0
- package/lib/base/default.module.js.map +1 -1
- package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
- package/lib/features/accessibility/accessibility-module.js +7 -5
- package/lib/features/accessibility/accessibility-module.js.map +1 -1
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts +1 -1
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts.map +1 -1
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js +7 -7
- package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js.map +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts.map +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js +1 -1
- package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js.map +1 -1
- package/lib/features/accessibility/move-zoom/move-zoom-module.d.ts.map +1 -1
- package/lib/features/accessibility/move-zoom/move-zoom-module.js +1 -1
- package/lib/features/accessibility/move-zoom/move-zoom-module.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-module.d.ts.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-module.js +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-module.js.map +1 -1
- package/lib/features/accessibility/search/search-palette-module.d.ts.map +1 -1
- package/lib/features/accessibility/search/search-palette-module.js +1 -1
- package/lib/features/accessibility/search/search-palette-module.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.js +3 -1
- package/lib/features/accessibility/view-key-tools/view-key-tools-module.js.map +1 -1
- package/lib/features/bounds/bounds-module.d.ts.map +1 -1
- package/lib/features/bounds/bounds-module.js +1 -1
- package/lib/features/bounds/bounds-module.js.map +1 -1
- package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-module.js +1 -1
- package/lib/features/command-palette/command-palette-module.js.map +1 -1
- package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
- package/lib/features/context-menu/context-menu-module.js +1 -1
- package/lib/features/context-menu/context-menu-module.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-modules.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-modules.js +5 -2
- package/lib/features/copy-paste/copy-paste-modules.js.map +1 -1
- package/lib/features/debug/debug-module.d.ts.map +1 -1
- package/lib/features/debug/debug-module.js +1 -1
- package/lib/features/debug/debug-module.js.map +1 -1
- package/lib/features/decoration/decoration-module.d.ts.map +1 -1
- package/lib/features/decoration/decoration-module.js +1 -1
- package/lib/features/decoration/decoration-module.js.map +1 -1
- package/lib/features/element-template/element-template-module.d.ts.map +1 -1
- package/lib/features/element-template/element-template-module.js +1 -1
- package/lib/features/element-template/element-template-module.js.map +1 -1
- package/lib/features/export/export-modules.d.ts.map +1 -1
- package/lib/features/export/export-modules.js +2 -2
- package/lib/features/export/export-modules.js.map +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +6 -6
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/grid/grid-module.d.ts.map +1 -1
- package/lib/features/grid/grid-module.js +1 -1
- package/lib/features/grid/grid-module.js.map +1 -1
- package/lib/features/helper-lines/helper-line-module.d.ts.map +1 -1
- package/lib/features/helper-lines/helper-line-module.js +1 -1
- package/lib/features/helper-lines/helper-line-module.js.map +1 -1
- package/lib/features/hints/type-hints-module.d.ts.map +1 -1
- package/lib/features/hints/type-hints-module.js +1 -1
- package/lib/features/hints/type-hints-module.js.map +1 -1
- package/lib/features/hover/hover-module.d.ts.map +1 -1
- package/lib/features/hover/hover-module.js +1 -1
- package/lib/features/hover/hover-module.js.map +1 -1
- package/lib/features/label-edit/label-edit-module.d.ts.map +1 -1
- package/lib/features/label-edit/label-edit-module.js +1 -1
- package/lib/features/label-edit/label-edit-module.js.map +1 -1
- package/lib/features/label-edit-ui/label-edit-ui-module.d.ts.map +1 -1
- package/lib/features/label-edit-ui/label-edit-ui-module.js +1 -1
- package/lib/features/label-edit-ui/label-edit-ui-module.js.map +1 -1
- package/lib/features/layout/layout-module.d.ts.map +1 -1
- package/lib/features/layout/layout-module.js +1 -1
- package/lib/features/layout/layout-module.js.map +1 -1
- package/lib/features/navigation/navigation-module.d.ts.map +1 -1
- package/lib/features/navigation/navigation-module.js +1 -1
- package/lib/features/navigation/navigation-module.js.map +1 -1
- package/lib/features/routing/routing-module.d.ts.map +1 -1
- package/lib/features/routing/routing-module.js +1 -1
- package/lib/features/routing/routing-module.js.map +1 -1
- package/lib/features/save/save-module.d.ts.map +1 -1
- package/lib/features/save/save-module.js +1 -1
- package/lib/features/save/save-module.js.map +1 -1
- package/lib/features/select/select-module.d.ts.map +1 -1
- package/lib/features/select/select-module.js +2 -2
- package/lib/features/select/select-module.js.map +1 -1
- package/lib/features/source-model-watcher/source-model-watcher-module.d.ts.map +1 -1
- package/lib/features/source-model-watcher/source-model-watcher-module.js +1 -1
- package/lib/features/source-model-watcher/source-model-watcher-module.js.map +1 -1
- package/lib/features/status/status-module.d.ts.map +1 -1
- package/lib/features/status/status-module.js +1 -1
- package/lib/features/status/status-module.js.map +1 -1
- package/lib/features/svg-metadata/svg-metadata-module.d.ts.map +1 -1
- package/lib/features/svg-metadata/svg-metadata-module.js +1 -1
- package/lib/features/svg-metadata/svg-metadata-module.js.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette-module.js +1 -1
- package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-module.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-module.js +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-module.js.map +1 -1
- package/lib/features/tools/deletion/deletion-tool-module.d.ts.map +1 -1
- package/lib/features/tools/deletion/deletion-tool-module.js +1 -1
- package/lib/features/tools/deletion/deletion-tool-module.js.map +1 -1
- package/lib/features/tools/edge-creation/edege-creation-module.d.ts.map +1 -1
- package/lib/features/tools/edge-creation/edege-creation-module.js +1 -1
- package/lib/features/tools/edge-creation/edege-creation-module.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-module.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-module.js +1 -1
- package/lib/features/tools/edge-edit/edge-edit-module.js.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-selection-module.js +1 -1
- package/lib/features/tools/marquee-selection/marquee-selection-module.js.map +1 -1
- package/lib/features/tools/node-creation/node-creation-module.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-module.js +4 -1
- package/lib/features/tools/node-creation/node-creation-module.js.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.d.ts +15 -0
- package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
- package/lib/features/tools/tool-focus-loss-module.js +2 -2
- package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
- package/lib/features/validation/validation-modules.d.ts.map +1 -1
- package/lib/features/validation/validation-modules.js +3 -3
- package/lib/features/validation/validation-modules.js.map +1 -1
- package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
- package/lib/features/viewport/viewport-modules.js +2 -2
- package/lib/features/viewport/viewport-modules.js.map +1 -1
- package/lib/standalone-modules.d.ts.map +1 -1
- package/lib/standalone-modules.js +1 -1
- package/lib/standalone-modules.js.map +1 -1
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +1 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/package.json +3 -3
- package/src/base/default.module.ts +80 -73
- package/src/features/accessibility/accessibility-module.ts +23 -18
- package/src/features/accessibility/keyboard-pointer/keyboard-pointer-module.ts +18 -15
- package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.ts +7 -4
- package/src/features/accessibility/move-zoom/move-zoom-module.ts +7 -4
- package/src/features/accessibility/resize-key-tool/resize-key-module.ts +7 -4
- package/src/features/accessibility/search/search-palette-module.ts +7 -4
- package/src/features/accessibility/view-key-tools/view-key-tools-module.ts +10 -5
- package/src/features/bounds/bounds-module.ts +20 -17
- package/src/features/command-palette/command-palette-module.ts +9 -6
- package/src/features/context-menu/context-menu-module.ts +16 -13
- package/src/features/copy-paste/copy-paste-modules.ts +11 -5
- package/src/features/debug/debug-module.ts +10 -7
- package/src/features/decoration/decoration-module.ts +6 -3
- package/src/features/element-template/element-template-module.ts +8 -5
- package/src/features/export/export-modules.ts +10 -7
- package/src/features/export/glsp-svg-exporter.ts +6 -5
- package/src/features/grid/grid-module.ts +11 -8
- package/src/features/helper-lines/helper-line-module.ts +16 -13
- package/src/features/hints/type-hints-module.ts +10 -7
- package/src/features/hover/hover-module.ts +28 -25
- package/src/features/label-edit/label-edit-module.ts +9 -6
- package/src/features/label-edit-ui/label-edit-ui-module.ts +9 -6
- package/src/features/layout/layout-module.ts +8 -5
- package/src/features/navigation/navigation-module.ts +11 -8
- package/src/features/routing/routing-module.ts +21 -18
- package/src/features/save/save-module.ts +6 -3
- package/src/features/select/select-module.ts +11 -8
- package/src/features/source-model-watcher/source-model-watcher-module.ts +6 -3
- package/src/features/status/status-module.ts +9 -6
- package/src/features/svg-metadata/svg-metadata-module.ts +7 -4
- package/src/features/tool-palette/tool-palette-module.ts +10 -7
- package/src/features/tools/change-bounds/change-bounds-tool-module.ts +11 -8
- package/src/features/tools/deletion/deletion-tool-module.ts +8 -5
- package/src/features/tools/edge-creation/edege-creation-module.ts +9 -6
- package/src/features/tools/edge-edit/edge-edit-module.ts +14 -11
- package/src/features/tools/marquee-selection/marquee-selection-module.ts +11 -8
- package/src/features/tools/node-creation/node-creation-module.ts +4 -1
- package/src/features/tools/tool-focus-loss-module.ts +7 -4
- package/src/features/validation/validation-modules.ts +19 -13
- package/src/features/viewport/viewport-modules.ts +20 -17
- package/src/standalone-modules.ts +12 -9
- package/src/views/base-view-module.ts +7 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standalone-modules.d.ts","sourceRoot":"","sources":["../src/standalone-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,MAAM,EAEN,aAAa,EACb,aAAa,EACb,cAAc,EACd,QAAQ,EACR,OAAO,EACP,WAAW,EAGX,mBAAmB,EAOtB,MAAM,uBAAuB,CAAC;AAU/B,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"standalone-modules.d.ts","sourceRoot":"","sources":["../src/standalone-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EACH,MAAM,EAEN,aAAa,EACb,aAAa,EACb,cAAc,EACd,QAAQ,EACR,OAAO,EACP,WAAW,EAGX,mBAAmB,EAOtB,MAAM,uBAAuB,CAAC;AAU/B,eAAO,MAAM,uBAAuB,eAWnC,CAAC;AAEF;;;GAGG;AACH,qBACa,qBAAsB,YAAW,cAAc;IAExD,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC;IAE1B,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ;CAGnD;AAED,qBACa,iBAAkB,SAAQ,WAAW;IACrC,OAAO,CAAC,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,GAAG,MAAM,EAAE;CAM5E;AAED;;;;;;;;;GASG;AAEH,eAAO,MAAM,kBAAkB,yJASrB,CAAC;AAEX,eAAO,MAAM,wBAAwB,EAAE,mBAEtC,CAAC"}
|
|
@@ -42,7 +42,7 @@ exports.standaloneDefaultModule = new sprotty_1.FeatureModule((bind, unbind, isB
|
|
|
42
42
|
(0, sprotty_1.configureActionHandler)(context, sprotty_1.UpdateProgressAction.KIND, FallbackActionHandler);
|
|
43
43
|
(0, sprotty_1.configureActionHandler)(context, sprotty_1.EndProgressAction.KIND, FallbackActionHandler);
|
|
44
44
|
(0, sprotty_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, LayoutKeyListener);
|
|
45
|
-
});
|
|
45
|
+
}, { featureId: Symbol('standaloneDefault') });
|
|
46
46
|
/**
|
|
47
47
|
* A fallback action handler for actions sent by features that are currently not supported by
|
|
48
48
|
* default in the standalone context. Unhandled actions will be simply forwarded to the {@link ILogger}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"standalone-modules.js","sourceRoot":"","sources":["../src/standalone-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,mDAkB+B;AAC/B,yCAA+C;AAC/C,iFAAqF;AACrF,qEAA0E;AAC1E,6DAAyD;AACzD,mEAAyE;AACzE,4EAAuE;AACvE,iFAA2F;AAC3F,2EAAgF;AAEnE,QAAA,uBAAuB,GAAG,IAAI,uBAAa,
|
|
1
|
+
{"version":3,"file":"standalone-modules.js","sourceRoot":"","sources":["../src/standalone-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,mDAkB+B;AAC/B,yCAA+C;AAC/C,iFAAqF;AACrF,qEAA0E;AAC1E,6DAAyD;AACzD,mEAAyE;AACzE,4EAAuE;AACvE,iFAA2F;AAC3F,2EAAgF;AAEnE,QAAA,uBAAuB,GAAG,IAAI,uBAAa,CACpD,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClD,IAAI,CAAC,qBAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAA,gCAAsB,EAAC,OAAO,EAAE,uBAAa,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAC3E,IAAA,gCAAsB,EAAC,OAAO,EAAE,6BAAmB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IACjF,IAAA,gCAAsB,EAAC,OAAO,EAAE,8BAAoB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAClF,IAAA,gCAAsB,EAAC,OAAO,EAAE,2BAAiB,CAAC,IAAI,EAAE,qBAAqB,CAAC,CAAC;IAC/E,IAAA,uBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC;AACjE,CAAC,EACD,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,EAAE,CAC7C,CAAC;AAEF;;;GAGG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAI9B,MAAM,CAAC,MAAc;QACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,4BAA4B,EAAE,MAAM,CAAC,CAAC;IAChE,CAAC;CACJ,CAAA;AAPY,sDAAqB;AAEpB;IADT,IAAA,kBAAM,EAAC,eAAK,CAAC,OAAO,CAAC;;qDACI;gCAFjB,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAOjC;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,qBAAW;IACrC,OAAO,CAAC,QAAuB,EAAE,KAAoB;QAC1D,IAAI,IAAA,0BAAgB,EAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC;YACtD,OAAO,CAAC,yBAAe,CAAC,MAAM,EAAE,CAAC,CAAC;QACtC,CAAC;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAPY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,sBAAU,GAAE;GACA,iBAAiB,CAO7B;AAED;;;;;;;;;GASG;AAEU,QAAA,kBAAkB,GAAG;IAC9B,2CAAwB;IACxB,8CAAyB;IACzB,oDAA+B;IAC/B,sCAAsB;IACtB,uCAAsB;IACtB,+BAAuB;IACvB,wBAAU;IACV,iCAAc;CACR,CAAC;AAEE,QAAA,wBAAwB,GAAwB;IACzD,GAAG,EAAE,CAAC,GAAG,0BAAkB,CAAC;CAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-view-module.d.ts","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,cAAc,EAOd,aAAa,EAwBhB,MAAM,uBAAuB,CAAC;AAQ/B,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"base-view-module.d.ts","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,cAAc,EAOd,aAAa,EAwBhB,MAAM,uBAAuB,CAAC;AAQ/B,eAAO,MAAM,cAAc,eAM1B,CAAC;AAEF,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,IAAI,CAiCrG"}
|
|
@@ -26,7 +26,7 @@ const rounded_corner_view_1 = require("./rounded-corner-view");
|
|
|
26
26
|
exports.baseViewModule = new sprotty_1.FeatureModule((bind, unbind, isBound, rebind) => {
|
|
27
27
|
const context = { bind, unbind, isBound, rebind };
|
|
28
28
|
configureDefaultModelElements(context);
|
|
29
|
-
});
|
|
29
|
+
}, { featureId: Symbol('baseView') });
|
|
30
30
|
function configureDefaultModelElements(context) {
|
|
31
31
|
// HTML elements
|
|
32
32
|
(0, sprotty_1.configureModelElement)(context, sprotty_1.DefaultTypes.HTML, sprotty_1.GHtmlRoot, sprotty_1.HtmlRootView);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-view-module.js","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,mDAgC+B;AAC/B,sEAAmE;AACnE,oCAAyC;AACzC,6CAAyC;AACzC,+CAA2C;AAC3C,2DAAuD;AACvD,+DAA8D;AAEjD,QAAA,cAAc,GAAG,IAAI,uBAAa,
|
|
1
|
+
{"version":3,"file":"base-view-module.js","sourceRoot":"","sources":["../../src/views/base-view-module.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.344+9f5e1eb",
|
|
4
4
|
"description": "A sprotty-based client for GLSP",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"watch": "tsc -w"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@eclipse-glsp/sprotty": "2.2.0-next.
|
|
49
|
+
"@eclipse-glsp/sprotty": "2.2.0-next.344+9f5e1eb",
|
|
50
50
|
"autocompleter": "^9.1.0",
|
|
51
51
|
"file-saver": "^2.0.5",
|
|
52
52
|
"lodash": "4.17.21"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"publishConfig": {
|
|
62
62
|
"access": "public"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "9f5e1eb23836a8567fd1b78f06f19c60531ee564"
|
|
65
65
|
}
|
|
@@ -62,76 +62,83 @@ import { GViewRegistry } from './view/view-registry';
|
|
|
62
62
|
* The default module provides all of GLSP's base functionality and services.
|
|
63
63
|
* It builds on top of sprotty's default module {@link `sprottyDefaultModule`}.
|
|
64
64
|
*/
|
|
65
|
-
export const defaultModule = new FeatureModule(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
65
|
+
export const defaultModule = new FeatureModule(
|
|
66
|
+
(bind, unbind, isBound, rebind, ...rest) => {
|
|
67
|
+
// load bindings from sprotty's default module to avoid code duplication
|
|
68
|
+
sprottyDefaultModule.registry(bind, unbind, isBound, rebind, ...rest);
|
|
69
|
+
const context = { bind, unbind, isBound, rebind };
|
|
70
|
+
|
|
71
|
+
bindLazyInjector(context);
|
|
72
|
+
|
|
73
|
+
bind(EditorContextService).toSelf().inSingletonScope();
|
|
74
|
+
bind(TYPES.IDiagramStartup).toService(EditorContextService);
|
|
75
|
+
bind(TYPES.IEditorContextServiceProvider).toProvider<EditorContextService>(
|
|
76
|
+
ctx => async () => ctx.container.get(EditorContextService)
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
configureActionHandler(context, SetEditModeAction.KIND, EditorContextService);
|
|
80
|
+
configureActionHandler(context, SetDirtyStateAction.KIND, EditorContextService);
|
|
81
|
+
|
|
82
|
+
bind(FocusTracker).toSelf().inSingletonScope();
|
|
83
|
+
configureActionHandler(context, FocusStateChangedAction.KIND, FocusTracker);
|
|
84
|
+
|
|
85
|
+
// Model update initialization ------------------------------------
|
|
86
|
+
bind(TYPES.IFeedbackActionDispatcher).to(FeedbackActionDispatcher).inSingletonScope();
|
|
87
|
+
configureCommand(context, FeedbackAwareUpdateModelCommand);
|
|
88
|
+
rebind(SetModelCommand).to(FeedbackAwareSetModelCommand);
|
|
89
|
+
|
|
90
|
+
bind(GLSPMouseTool).toSelf().inSingletonScope();
|
|
91
|
+
bindOrRebind(context, MouseTool).toService(GLSPMouseTool);
|
|
92
|
+
bind(TYPES.IDiagramStartup).toService(GLSPMouseTool);
|
|
93
|
+
bind(GLSPMousePositionTracker).toSelf().inSingletonScope();
|
|
94
|
+
bindOrRebind(context, MousePositionTracker).toService(GLSPMousePositionTracker);
|
|
95
|
+
bind(GLSPKeyTool).toSelf().inSingletonScope();
|
|
96
|
+
bindOrRebind(context, KeyTool).toService(GLSPKeyTool);
|
|
97
|
+
bind(TYPES.IDiagramStartup).toService(GLSPKeyTool);
|
|
98
|
+
|
|
99
|
+
bindAsService(context, TYPES.MouseListener, SelectionClearingMouseListener);
|
|
100
|
+
bindOrRebind(context, TYPES.ICommandStack).to(GLSPCommandStack).inSingletonScope();
|
|
101
|
+
bind(GLSPActionDispatcher).toSelf().inSingletonScope();
|
|
102
|
+
bindOrRebind(context, TYPES.IActionDispatcher).toService(GLSPActionDispatcher);
|
|
103
|
+
|
|
104
|
+
bindOrRebind(context, ActionHandlerRegistry).to(GLSPActionHandlerRegistry).inSingletonScope();
|
|
105
|
+
|
|
106
|
+
bindAsService(context, TYPES.ModelSource, GLSPModelSource);
|
|
107
|
+
bind(DiagramLoader).toSelf().inSingletonScope();
|
|
108
|
+
bind(ModelInitializationConstraint).to(DefaultModelInitializationConstraint).inSingletonScope();
|
|
109
|
+
|
|
110
|
+
// support re-registration of model elements and views
|
|
111
|
+
bindOrRebind(context, TYPES.SModelRegistry).to(GModelRegistry).inSingletonScope();
|
|
112
|
+
bindOrRebind(context, TYPES.ViewRegistry).to(GViewRegistry).inSingletonScope();
|
|
113
|
+
|
|
114
|
+
bind(SelectionService).toSelf().inSingletonScope();
|
|
115
|
+
bind(TYPES.IGModelRootListener).toService(SelectionService);
|
|
116
|
+
bind(TYPES.IDiagramStartup).toService(SelectionService);
|
|
117
|
+
|
|
118
|
+
// Feedback Support ------------------------------------
|
|
119
|
+
// Generic re-usable feedback modifying css classes
|
|
120
|
+
configureCommand(context, ModifyCssFeedbackCommand);
|
|
121
|
+
// We support using sprotty's MoveCommand as client-side visual feedback
|
|
122
|
+
configureCommand(context, MoveCommand);
|
|
123
|
+
|
|
124
|
+
bindAsService(context, TYPES.IVNodePostprocessor, LocationPostprocessor);
|
|
125
|
+
bind(TYPES.HiddenVNodePostprocessor).toService(LocationPostprocessor);
|
|
126
|
+
|
|
127
|
+
// Tool manager initialization ------------------------------------
|
|
128
|
+
bind(TYPES.IToolManager).to(ToolManager).inSingletonScope();
|
|
129
|
+
bind(TYPES.IDiagramStartup).toService(TYPES.IToolManager);
|
|
130
|
+
bind(TYPES.IEditModeListener).toService(TYPES.IToolManager);
|
|
131
|
+
bind(DefaultToolsEnablingKeyListener).toSelf().inSingletonScope();
|
|
132
|
+
bind(TYPES.KeyListener).toService(DefaultToolsEnablingKeyListener);
|
|
133
|
+
bind(ToolManagerActionHandler).toSelf().inSingletonScope();
|
|
134
|
+
configureActionHandler(context, EnableDefaultToolsAction.KIND, ToolManagerActionHandler);
|
|
135
|
+
configureActionHandler(context, EnableToolsAction.KIND, ToolManagerActionHandler);
|
|
136
|
+
|
|
137
|
+
bind(GLSPUIExtensionRegistry).toSelf().inSingletonScope();
|
|
138
|
+
bindOrRebind(context, TYPES.UIExtensionRegistry).toService(GLSPUIExtensionRegistry);
|
|
139
|
+
bind(TYPES.IDiagramStartup).toService(GLSPUIExtensionRegistry);
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
featureId: Symbol('default')
|
|
143
|
+
}
|
|
144
|
+
);
|
|
@@ -15,30 +15,35 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
17
|
import { FeatureModule } from '@eclipse-glsp/sprotty';
|
|
18
|
+
import { configureElementNavigationTool } from './element-navigation/element-navigation-module';
|
|
19
|
+
import { configureFocusTrackerTool } from './focus-tracker/focus-tracker-module';
|
|
18
20
|
import { configureShortcutHelpTool } from './key-shortcut/di.config';
|
|
21
|
+
import { configureKeyboardControlTools } from './keyboard-pointer/keyboard-pointer-module';
|
|
22
|
+
import { configureKeyboardToolPaletteTool } from './keyboard-tool-palette/keyboard-tool-palette-module';
|
|
19
23
|
import { configureMoveZoom } from './move-zoom/move-zoom-module';
|
|
20
24
|
import { configureResizeTools } from './resize-key-tool/resize-key-module';
|
|
21
25
|
import { configureSearchPaletteModule } from './search/search-palette-module';
|
|
22
|
-
import { configureViewKeyTools } from './view-key-tools/view-key-tools-module';
|
|
23
|
-
import { configureKeyboardToolPaletteTool } from './keyboard-tool-palette/keyboard-tool-palette-module';
|
|
24
|
-
import { configureKeyboardControlTools } from './keyboard-pointer/keyboard-pointer-module';
|
|
25
|
-
import { configureElementNavigationTool } from './element-navigation/element-navigation-module';
|
|
26
|
-
import { configureFocusTrackerTool } from './focus-tracker/focus-tracker-module';
|
|
27
26
|
import { configureToastTool } from './toast/toast-module';
|
|
27
|
+
import { configureViewKeyTools } from './view-key-tools/view-key-tools-module';
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Enables the accessibility tools for a keyboard-only-usage
|
|
31
31
|
*/
|
|
32
|
-
export const accessibilityModule = new FeatureModule(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
32
|
+
export const accessibilityModule = new FeatureModule(
|
|
33
|
+
(bind, unbind, isBound, rebind) => {
|
|
34
|
+
const context = { bind, unbind, isBound, rebind };
|
|
35
|
+
configureResizeTools(context);
|
|
36
|
+
configureViewKeyTools(context);
|
|
37
|
+
configureMoveZoom(context);
|
|
38
|
+
configureSearchPaletteModule(context);
|
|
39
|
+
configureShortcutHelpTool(context);
|
|
40
|
+
configureKeyboardToolPaletteTool(context);
|
|
41
|
+
configureKeyboardControlTools(context);
|
|
42
|
+
configureElementNavigationTool(context);
|
|
43
|
+
configureFocusTrackerTool(context);
|
|
44
|
+
configureToastTool(context);
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
featureId: Symbol('accessibility')
|
|
48
|
+
}
|
|
49
|
+
);
|
|
@@ -14,32 +14,35 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import {
|
|
17
|
+
BindingContext,
|
|
18
|
+
FeatureModule,
|
|
17
19
|
TYPES,
|
|
18
|
-
|
|
19
|
-
configureActionHandler,
|
|
20
|
+
TriggerEdgeCreationAction,
|
|
20
21
|
TriggerNodeCreationAction,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
TriggerEdgeCreationAction
|
|
22
|
+
bindAsService,
|
|
23
|
+
configureActionHandler
|
|
24
24
|
} from '@eclipse-glsp/sprotty';
|
|
25
|
-
import {
|
|
26
|
-
import { KeyboardPointer } from './keyboard-pointer';
|
|
27
|
-
import { KeyboardGrid } from '../keyboard-grid/keyboard-grid';
|
|
28
|
-
import { SetKeyboardPointerRenderPositionAction } from './actions';
|
|
25
|
+
import { SetEdgeTargetSelectionAction } from '../edge-autocomplete/action';
|
|
29
26
|
import { EdgeAutocompletePalette } from '../edge-autocomplete/edge-autocomplete-palette';
|
|
30
27
|
import { EdgeAutocompletePaletteTool } from '../edge-autocomplete/edge-autocomplete-tool';
|
|
31
|
-
import {
|
|
28
|
+
import { GlobalKeyListenerTool } from '../global-keylistener-tool';
|
|
29
|
+
import { EnableKeyboardGridAction, KeyboardGridCellSelectedAction } from '../keyboard-grid/action';
|
|
30
|
+
import { KeyboardGrid } from '../keyboard-grid/keyboard-grid';
|
|
32
31
|
import { GridSearchPalette } from '../keyboard-grid/keyboard-grid-search-palette';
|
|
33
32
|
import { KeyboardNodeGrid } from '../keyboard-grid/keyboard-node-grid';
|
|
34
|
-
import {
|
|
33
|
+
import { SetKeyboardPointerRenderPositionAction } from './actions';
|
|
34
|
+
import { KeyboardPointer } from './keyboard-pointer';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Handles the pointer used via grid to position new elements.
|
|
38
38
|
*/
|
|
39
|
-
export const keyboardControlModule = new FeatureModule(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
export const keyboardControlModule = new FeatureModule(
|
|
40
|
+
(bind, unbind, isBound, rebind) => {
|
|
41
|
+
const context = { bind, unbind, isBound, rebind };
|
|
42
|
+
configureKeyboardControlTools(context);
|
|
43
|
+
},
|
|
44
|
+
{ featureId: Symbol('keyboardControl') }
|
|
45
|
+
);
|
|
43
46
|
|
|
44
47
|
export function configureKeyboardControlTools(context: BindingContext): void {
|
|
45
48
|
bindAsService(context, TYPES.IDefaultTool, GlobalKeyListenerTool);
|
|
@@ -29,10 +29,13 @@ import { EnableToolPaletteAction } from '../../tool-palette/tool-palette';
|
|
|
29
29
|
import { FocusDomAction } from '../actions';
|
|
30
30
|
import { KeyboardToolPalette } from './keyboard-tool-palette';
|
|
31
31
|
|
|
32
|
-
export const keyboardToolPaletteModule = new FeatureModule(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
export const keyboardToolPaletteModule = new FeatureModule(
|
|
33
|
+
(bind, unbind, isBound, rebind) => {
|
|
34
|
+
const context = { bind, unbind, isBound, rebind };
|
|
35
|
+
configureKeyboardToolPaletteTool(context);
|
|
36
|
+
},
|
|
37
|
+
{ featureId: Symbol('keyboardToolPalette') }
|
|
38
|
+
);
|
|
36
39
|
|
|
37
40
|
export function configureKeyboardToolPaletteTool(context: BindingContext): void {
|
|
38
41
|
bindAsService(context, TYPES.IUIExtension, KeyboardToolPalette);
|
|
@@ -21,10 +21,13 @@ import { ZoomElementAction, ZoomElementHandler, ZoomViewportAction, ZoomViewport
|
|
|
21
21
|
/**
|
|
22
22
|
* Handles move and zoom actions.
|
|
23
23
|
*/
|
|
24
|
-
export const moveZoomModule = new FeatureModule(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
export const moveZoomModule = new FeatureModule(
|
|
25
|
+
(bind, unbind, isBound, rebind) => {
|
|
26
|
+
const context = { bind, unbind, isBound, rebind };
|
|
27
|
+
configureMoveZoom(context);
|
|
28
|
+
},
|
|
29
|
+
{ featureId: Symbol('moveZoom') }
|
|
30
|
+
);
|
|
28
31
|
|
|
29
32
|
export function configureMoveZoom(context: BindingContext): void {
|
|
30
33
|
context.bind(MoveViewportHandler).toSelf().inSingletonScope();
|
|
@@ -21,10 +21,13 @@ import { ResizeKeyTool } from './resize-key-tool';
|
|
|
21
21
|
/**
|
|
22
22
|
* Handles resize actions.
|
|
23
23
|
*/
|
|
24
|
-
export const resizeKeyModule = new FeatureModule(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
export const resizeKeyModule = new FeatureModule(
|
|
25
|
+
(bind, unbind, isBound, rebind) => {
|
|
26
|
+
const context = { bind, unbind, isBound, rebind };
|
|
27
|
+
configureResizeTools(context);
|
|
28
|
+
},
|
|
29
|
+
{ featureId: Symbol('resizeKey') }
|
|
30
|
+
);
|
|
28
31
|
|
|
29
32
|
export function configureResizeTools(context: BindingContext): void {
|
|
30
33
|
context.bind(ResizeElementHandler).toSelf().inSingletonScope();
|
|
@@ -18,10 +18,13 @@ import { bindAsService, BindingContext, FeatureModule, TYPES } from '@eclipse-gl
|
|
|
18
18
|
import { SearchAutocompletePalette } from './search-palette';
|
|
19
19
|
import { SearchAutocompletePaletteTool } from './search-tool';
|
|
20
20
|
|
|
21
|
-
export const searchPaletteModule = new FeatureModule(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export const searchPaletteModule = new FeatureModule(
|
|
22
|
+
(bind, _unbind, isBound, rebind) => {
|
|
23
|
+
const context = { bind, isBound, rebind };
|
|
24
|
+
configureSearchPaletteModule(context);
|
|
25
|
+
},
|
|
26
|
+
{ featureId: Symbol('searchPalette') }
|
|
27
|
+
);
|
|
25
28
|
|
|
26
29
|
export function configureSearchPaletteModule(context: Pick<BindingContext, 'bind'>): void {
|
|
27
30
|
bindAsService(context, TYPES.IUIExtension, SearchAutocompletePalette);
|
|
@@ -15,15 +15,20 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
17
|
import { bindAsService, BindingContext, configureActionHandler, FeatureModule, TYPES } from '@eclipse-glsp/sprotty';
|
|
18
|
+
import { KeyboardGridCellSelectedAction, KeyboardGridKeyboardEventAction } from '../keyboard-grid/action';
|
|
18
19
|
import { DeselectKeyTool } from './deselect-key-tool';
|
|
19
20
|
import { MovementKeyTool } from './movement-key-tool';
|
|
20
21
|
import { ZoomKeyTool } from './zoom-key-tool';
|
|
21
|
-
import { KeyboardGridCellSelectedAction, KeyboardGridKeyboardEventAction } from '../keyboard-grid/action';
|
|
22
22
|
|
|
23
|
-
export const viewKeyToolsModule = new FeatureModule(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
export const viewKeyToolsModule = new FeatureModule(
|
|
24
|
+
(bind, _unbind, isBound, rebind) => {
|
|
25
|
+
const context = { bind, isBound, rebind };
|
|
26
|
+
configureViewKeyTools(context);
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
featureId: Symbol('viewKeyTools')
|
|
30
|
+
}
|
|
31
|
+
);
|
|
27
32
|
|
|
28
33
|
export function configureViewKeyTools(context: Pick<BindingContext, 'bind' | 'isBound'>): void {
|
|
29
34
|
bindAsService(context, TYPES.IDefaultTool, MovementKeyTool);
|
|
@@ -35,24 +35,27 @@ import { LocalComputedBoundsCommand } from './local-bounds';
|
|
|
35
35
|
import { SetBoundsFeedbackCommand } from './set-bounds-feedback-command';
|
|
36
36
|
import { VBoxLayouterExt } from './vbox-layout';
|
|
37
37
|
|
|
38
|
-
export const boundsModule = new FeatureModule(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
export const boundsModule = new FeatureModule(
|
|
39
|
+
(bind, _unbind, isBound, _rebind) => {
|
|
40
|
+
const context = { bind, isBound };
|
|
41
|
+
configureCommand(context, SetBoundsCommand);
|
|
42
|
+
configureCommand(context, RequestBoundsCommand);
|
|
43
|
+
bind(HiddenBoundsUpdater).toSelf().inSingletonScope();
|
|
44
|
+
bindAsService(context, TYPES.HiddenVNodePostprocessor, GLSPHiddenBoundsUpdater);
|
|
44
45
|
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
configureCommand(context, LocalComputedBoundsCommand);
|
|
47
|
+
configureCommand(context, SetBoundsFeedbackCommand);
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
bind(TYPES.Layouter).to(LayouterExt).inSingletonScope();
|
|
50
|
+
bind(TYPES.LayoutRegistry).to(LayoutRegistry).inSingletonScope();
|
|
50
51
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
configureLayout(context, VBoxLayouter.KIND, VBoxLayouterExt);
|
|
53
|
+
configureLayout(context, HBoxLayouter.KIND, HBoxLayouterExt);
|
|
54
|
+
configureLayout(context, FreeFormLayouter.KIND, FreeFormLayouter);
|
|
54
55
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
56
|
+
// backwards compatibility
|
|
57
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
58
|
+
bind(PositionSnapper).toSelf();
|
|
59
|
+
},
|
|
60
|
+
{ featureId: Symbol('bounds') }
|
|
61
|
+
);
|
|
@@ -19,9 +19,12 @@ import { GlspCommandPalette } from './command-palette';
|
|
|
19
19
|
import { CommandPaletteTool } from './command-palette-tool';
|
|
20
20
|
import { ServerCommandPaletteActionProvider } from './server-command-palette-provider';
|
|
21
21
|
|
|
22
|
-
export const commandPaletteModule = new FeatureModule(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
export const commandPaletteModule = new FeatureModule(
|
|
23
|
+
bind => {
|
|
24
|
+
bindAsService(bind, TYPES.IUIExtension, GlspCommandPalette);
|
|
25
|
+
bind(TYPES.ICommandPaletteActionProviderRegistry).to(CommandPaletteActionProviderRegistry).inSingletonScope();
|
|
26
|
+
bindAsService(bind, TYPES.ICommandPaletteActionProvider, ServerCommandPaletteActionProvider);
|
|
27
|
+
bindAsService(bind, TYPES.IDefaultTool, CommandPaletteTool);
|
|
28
|
+
},
|
|
29
|
+
{ featureId: Symbol('commandPalette') }
|
|
30
|
+
);
|
|
@@ -17,17 +17,20 @@ import { ContextMenuProviderRegistry, FeatureModule, IContextMenuService, TYPES,
|
|
|
17
17
|
import { GLSPContextMenuMouseListener } from './glsp-context-menu-mouse-listener';
|
|
18
18
|
import { ServerContextMenuItemProvider } from './server-context-menu-provider';
|
|
19
19
|
|
|
20
|
-
export const contextMenuModule = new FeatureModule(
|
|
21
|
-
bind
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
export const contextMenuModule = new FeatureModule(
|
|
21
|
+
bind => {
|
|
22
|
+
bind(TYPES.IContextMenuServiceProvider).toProvider<IContextMenuService>(ctx => async () => {
|
|
23
|
+
if (ctx.container.isBound(TYPES.IContextMenuService)) {
|
|
24
|
+
return ctx.container.get<IContextMenuService>(TYPES.IContextMenuService);
|
|
25
|
+
}
|
|
26
|
+
console.warn("'TYPES.IContextMenuService' is not bound. Use no-op implementation instead");
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
28
|
+
return { show: () => {} };
|
|
29
|
+
});
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
31
|
+
bindAsService(bind, TYPES.MouseListener, GLSPContextMenuMouseListener);
|
|
32
|
+
bind(TYPES.IContextMenuProviderRegistry).to(ContextMenuProviderRegistry);
|
|
33
|
+
bindAsService(bind, TYPES.IContextMenuItemProvider, ServerContextMenuItemProvider);
|
|
34
|
+
},
|
|
35
|
+
{ featureId: Symbol('contextMenu') }
|
|
36
|
+
);
|
|
@@ -17,10 +17,13 @@ import { bindAsService, FeatureModule, TYPES } from '@eclipse-glsp/sprotty';
|
|
|
17
17
|
import { LocalClipboardService, ServerCopyPasteHandler } from './copy-paste-handler';
|
|
18
18
|
import { CopyPasteStartup } from './copy-paste-standalone';
|
|
19
19
|
|
|
20
|
-
export const copyPasteModule = new FeatureModule(
|
|
21
|
-
bind
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
export const copyPasteModule = new FeatureModule(
|
|
21
|
+
(bind, _unbind, isBound) => {
|
|
22
|
+
bind(TYPES.ICopyPasteHandler).to(ServerCopyPasteHandler);
|
|
23
|
+
bind(TYPES.IAsyncClipboardService).to(LocalClipboardService).inSingletonScope();
|
|
24
|
+
},
|
|
25
|
+
{ featureId: Symbol('copyPaste') }
|
|
26
|
+
);
|
|
24
27
|
|
|
25
28
|
/**
|
|
26
29
|
* Feature module that is intended for the standalone deployment of GLSP (i.e. plain webapp)
|
|
@@ -31,5 +34,8 @@ export const standaloneCopyPasteModule = new FeatureModule(
|
|
|
31
34
|
(bind, _unbind, isBound) => {
|
|
32
35
|
bindAsService(bind, TYPES.IDiagramStartup, CopyPasteStartup);
|
|
33
36
|
},
|
|
34
|
-
{
|
|
37
|
+
{
|
|
38
|
+
featureId: Symbol('standaloneCopyPaste'),
|
|
39
|
+
requires: copyPasteModule
|
|
40
|
+
}
|
|
35
41
|
);
|
|
@@ -20,13 +20,16 @@ import { DebugBoundsDecorator } from './debug-bounds-decorator';
|
|
|
20
20
|
import { DebugManager } from './debug-manager';
|
|
21
21
|
import { EnableDebugModeAction, EnableDebugModeCommand } from './debug-model';
|
|
22
22
|
|
|
23
|
-
export const debugModule = new FeatureModule(
|
|
24
|
-
|
|
23
|
+
export const debugModule = new FeatureModule(
|
|
24
|
+
(bind, unbind, isBound, rebind) => {
|
|
25
|
+
const context = { bind, unbind, isBound, rebind };
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
configureCommand(context, EnableDebugModeCommand);
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
bind(DebugManager).toSelf().inSingletonScope();
|
|
30
|
+
configureActionHandler(context, EnableDebugModeAction.KIND, DebugManager);
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
}
|
|
32
|
+
bindAsService(context, TYPES.IVNodePostprocessor, DebugBoundsDecorator);
|
|
33
|
+
},
|
|
34
|
+
{ featureId: Symbol('debug') }
|
|
35
|
+
);
|