@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.
Files changed (176) hide show
  1. package/lib/base/default.module.d.ts.map +1 -1
  2. package/lib/base/default.module.js +2 -0
  3. package/lib/base/default.module.js.map +1 -1
  4. package/lib/features/accessibility/accessibility-module.d.ts.map +1 -1
  5. package/lib/features/accessibility/accessibility-module.js +7 -5
  6. package/lib/features/accessibility/accessibility-module.js.map +1 -1
  7. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts +1 -1
  8. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.d.ts.map +1 -1
  9. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js +7 -7
  10. package/lib/features/accessibility/keyboard-pointer/keyboard-pointer-module.js.map +1 -1
  11. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.d.ts.map +1 -1
  12. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js +1 -1
  13. package/lib/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.js.map +1 -1
  14. package/lib/features/accessibility/move-zoom/move-zoom-module.d.ts.map +1 -1
  15. package/lib/features/accessibility/move-zoom/move-zoom-module.js +1 -1
  16. package/lib/features/accessibility/move-zoom/move-zoom-module.js.map +1 -1
  17. package/lib/features/accessibility/resize-key-tool/resize-key-module.d.ts.map +1 -1
  18. package/lib/features/accessibility/resize-key-tool/resize-key-module.js +1 -1
  19. package/lib/features/accessibility/resize-key-tool/resize-key-module.js.map +1 -1
  20. package/lib/features/accessibility/search/search-palette-module.d.ts.map +1 -1
  21. package/lib/features/accessibility/search/search-palette-module.js +1 -1
  22. package/lib/features/accessibility/search/search-palette-module.js.map +1 -1
  23. package/lib/features/accessibility/view-key-tools/view-key-tools-module.d.ts.map +1 -1
  24. package/lib/features/accessibility/view-key-tools/view-key-tools-module.js +3 -1
  25. package/lib/features/accessibility/view-key-tools/view-key-tools-module.js.map +1 -1
  26. package/lib/features/bounds/bounds-module.d.ts.map +1 -1
  27. package/lib/features/bounds/bounds-module.js +1 -1
  28. package/lib/features/bounds/bounds-module.js.map +1 -1
  29. package/lib/features/command-palette/command-palette-module.d.ts.map +1 -1
  30. package/lib/features/command-palette/command-palette-module.js +1 -1
  31. package/lib/features/command-palette/command-palette-module.js.map +1 -1
  32. package/lib/features/context-menu/context-menu-module.d.ts.map +1 -1
  33. package/lib/features/context-menu/context-menu-module.js +1 -1
  34. package/lib/features/context-menu/context-menu-module.js.map +1 -1
  35. package/lib/features/copy-paste/copy-paste-modules.d.ts.map +1 -1
  36. package/lib/features/copy-paste/copy-paste-modules.js +5 -2
  37. package/lib/features/copy-paste/copy-paste-modules.js.map +1 -1
  38. package/lib/features/debug/debug-module.d.ts.map +1 -1
  39. package/lib/features/debug/debug-module.js +1 -1
  40. package/lib/features/debug/debug-module.js.map +1 -1
  41. package/lib/features/decoration/decoration-module.d.ts.map +1 -1
  42. package/lib/features/decoration/decoration-module.js +1 -1
  43. package/lib/features/decoration/decoration-module.js.map +1 -1
  44. package/lib/features/element-template/element-template-module.d.ts.map +1 -1
  45. package/lib/features/element-template/element-template-module.js +1 -1
  46. package/lib/features/element-template/element-template-module.js.map +1 -1
  47. package/lib/features/export/export-modules.d.ts.map +1 -1
  48. package/lib/features/export/export-modules.js +2 -2
  49. package/lib/features/export/export-modules.js.map +1 -1
  50. package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
  51. package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
  52. package/lib/features/export/glsp-svg-exporter.js +6 -6
  53. package/lib/features/export/glsp-svg-exporter.js.map +1 -1
  54. package/lib/features/grid/grid-module.d.ts.map +1 -1
  55. package/lib/features/grid/grid-module.js +1 -1
  56. package/lib/features/grid/grid-module.js.map +1 -1
  57. package/lib/features/helper-lines/helper-line-module.d.ts.map +1 -1
  58. package/lib/features/helper-lines/helper-line-module.js +1 -1
  59. package/lib/features/helper-lines/helper-line-module.js.map +1 -1
  60. package/lib/features/hints/type-hints-module.d.ts.map +1 -1
  61. package/lib/features/hints/type-hints-module.js +1 -1
  62. package/lib/features/hints/type-hints-module.js.map +1 -1
  63. package/lib/features/hover/hover-module.d.ts.map +1 -1
  64. package/lib/features/hover/hover-module.js +1 -1
  65. package/lib/features/hover/hover-module.js.map +1 -1
  66. package/lib/features/label-edit/label-edit-module.d.ts.map +1 -1
  67. package/lib/features/label-edit/label-edit-module.js +1 -1
  68. package/lib/features/label-edit/label-edit-module.js.map +1 -1
  69. package/lib/features/label-edit-ui/label-edit-ui-module.d.ts.map +1 -1
  70. package/lib/features/label-edit-ui/label-edit-ui-module.js +1 -1
  71. package/lib/features/label-edit-ui/label-edit-ui-module.js.map +1 -1
  72. package/lib/features/layout/layout-module.d.ts.map +1 -1
  73. package/lib/features/layout/layout-module.js +1 -1
  74. package/lib/features/layout/layout-module.js.map +1 -1
  75. package/lib/features/navigation/navigation-module.d.ts.map +1 -1
  76. package/lib/features/navigation/navigation-module.js +1 -1
  77. package/lib/features/navigation/navigation-module.js.map +1 -1
  78. package/lib/features/routing/routing-module.d.ts.map +1 -1
  79. package/lib/features/routing/routing-module.js +1 -1
  80. package/lib/features/routing/routing-module.js.map +1 -1
  81. package/lib/features/save/save-module.d.ts.map +1 -1
  82. package/lib/features/save/save-module.js +1 -1
  83. package/lib/features/save/save-module.js.map +1 -1
  84. package/lib/features/select/select-module.d.ts.map +1 -1
  85. package/lib/features/select/select-module.js +2 -2
  86. package/lib/features/select/select-module.js.map +1 -1
  87. package/lib/features/source-model-watcher/source-model-watcher-module.d.ts.map +1 -1
  88. package/lib/features/source-model-watcher/source-model-watcher-module.js +1 -1
  89. package/lib/features/source-model-watcher/source-model-watcher-module.js.map +1 -1
  90. package/lib/features/status/status-module.d.ts.map +1 -1
  91. package/lib/features/status/status-module.js +1 -1
  92. package/lib/features/status/status-module.js.map +1 -1
  93. package/lib/features/svg-metadata/svg-metadata-module.d.ts.map +1 -1
  94. package/lib/features/svg-metadata/svg-metadata-module.js +1 -1
  95. package/lib/features/svg-metadata/svg-metadata-module.js.map +1 -1
  96. package/lib/features/tool-palette/tool-palette-module.d.ts.map +1 -1
  97. package/lib/features/tool-palette/tool-palette-module.js +1 -1
  98. package/lib/features/tool-palette/tool-palette-module.js.map +1 -1
  99. package/lib/features/tools/change-bounds/change-bounds-tool-module.d.ts.map +1 -1
  100. package/lib/features/tools/change-bounds/change-bounds-tool-module.js +1 -1
  101. package/lib/features/tools/change-bounds/change-bounds-tool-module.js.map +1 -1
  102. package/lib/features/tools/deletion/deletion-tool-module.d.ts.map +1 -1
  103. package/lib/features/tools/deletion/deletion-tool-module.js +1 -1
  104. package/lib/features/tools/deletion/deletion-tool-module.js.map +1 -1
  105. package/lib/features/tools/edge-creation/edege-creation-module.d.ts.map +1 -1
  106. package/lib/features/tools/edge-creation/edege-creation-module.js +1 -1
  107. package/lib/features/tools/edge-creation/edege-creation-module.js.map +1 -1
  108. package/lib/features/tools/edge-edit/edge-edit-module.d.ts.map +1 -1
  109. package/lib/features/tools/edge-edit/edge-edit-module.js +1 -1
  110. package/lib/features/tools/edge-edit/edge-edit-module.js.map +1 -1
  111. package/lib/features/tools/marquee-selection/marquee-selection-module.d.ts.map +1 -1
  112. package/lib/features/tools/marquee-selection/marquee-selection-module.js +1 -1
  113. package/lib/features/tools/marquee-selection/marquee-selection-module.js.map +1 -1
  114. package/lib/features/tools/node-creation/node-creation-module.d.ts.map +1 -1
  115. package/lib/features/tools/node-creation/node-creation-module.js +4 -1
  116. package/lib/features/tools/node-creation/node-creation-module.js.map +1 -1
  117. package/lib/features/tools/tool-focus-loss-module.d.ts +15 -0
  118. package/lib/features/tools/tool-focus-loss-module.d.ts.map +1 -1
  119. package/lib/features/tools/tool-focus-loss-module.js +2 -2
  120. package/lib/features/tools/tool-focus-loss-module.js.map +1 -1
  121. package/lib/features/validation/validation-modules.d.ts.map +1 -1
  122. package/lib/features/validation/validation-modules.js +3 -3
  123. package/lib/features/validation/validation-modules.js.map +1 -1
  124. package/lib/features/viewport/viewport-modules.d.ts.map +1 -1
  125. package/lib/features/viewport/viewport-modules.js +2 -2
  126. package/lib/features/viewport/viewport-modules.js.map +1 -1
  127. package/lib/standalone-modules.d.ts.map +1 -1
  128. package/lib/standalone-modules.js +1 -1
  129. package/lib/standalone-modules.js.map +1 -1
  130. package/lib/views/base-view-module.d.ts.map +1 -1
  131. package/lib/views/base-view-module.js +1 -1
  132. package/lib/views/base-view-module.js.map +1 -1
  133. package/package.json +3 -3
  134. package/src/base/default.module.ts +80 -73
  135. package/src/features/accessibility/accessibility-module.ts +23 -18
  136. package/src/features/accessibility/keyboard-pointer/keyboard-pointer-module.ts +18 -15
  137. package/src/features/accessibility/keyboard-tool-palette/keyboard-tool-palette-module.ts +7 -4
  138. package/src/features/accessibility/move-zoom/move-zoom-module.ts +7 -4
  139. package/src/features/accessibility/resize-key-tool/resize-key-module.ts +7 -4
  140. package/src/features/accessibility/search/search-palette-module.ts +7 -4
  141. package/src/features/accessibility/view-key-tools/view-key-tools-module.ts +10 -5
  142. package/src/features/bounds/bounds-module.ts +20 -17
  143. package/src/features/command-palette/command-palette-module.ts +9 -6
  144. package/src/features/context-menu/context-menu-module.ts +16 -13
  145. package/src/features/copy-paste/copy-paste-modules.ts +11 -5
  146. package/src/features/debug/debug-module.ts +10 -7
  147. package/src/features/decoration/decoration-module.ts +6 -3
  148. package/src/features/element-template/element-template-module.ts +8 -5
  149. package/src/features/export/export-modules.ts +10 -7
  150. package/src/features/export/glsp-svg-exporter.ts +6 -5
  151. package/src/features/grid/grid-module.ts +11 -8
  152. package/src/features/helper-lines/helper-line-module.ts +16 -13
  153. package/src/features/hints/type-hints-module.ts +10 -7
  154. package/src/features/hover/hover-module.ts +28 -25
  155. package/src/features/label-edit/label-edit-module.ts +9 -6
  156. package/src/features/label-edit-ui/label-edit-ui-module.ts +9 -6
  157. package/src/features/layout/layout-module.ts +8 -5
  158. package/src/features/navigation/navigation-module.ts +11 -8
  159. package/src/features/routing/routing-module.ts +21 -18
  160. package/src/features/save/save-module.ts +6 -3
  161. package/src/features/select/select-module.ts +11 -8
  162. package/src/features/source-model-watcher/source-model-watcher-module.ts +6 -3
  163. package/src/features/status/status-module.ts +9 -6
  164. package/src/features/svg-metadata/svg-metadata-module.ts +7 -4
  165. package/src/features/tool-palette/tool-palette-module.ts +10 -7
  166. package/src/features/tools/change-bounds/change-bounds-tool-module.ts +11 -8
  167. package/src/features/tools/deletion/deletion-tool-module.ts +8 -5
  168. package/src/features/tools/edge-creation/edege-creation-module.ts +9 -6
  169. package/src/features/tools/edge-edit/edge-edit-module.ts +14 -11
  170. package/src/features/tools/marquee-selection/marquee-selection-module.ts +11 -8
  171. package/src/features/tools/node-creation/node-creation-module.ts +4 -1
  172. package/src/features/tools/tool-focus-loss-module.ts +7 -4
  173. package/src/features/validation/validation-modules.ts +19 -13
  174. package/src/features/viewport/viewport-modules.ts +20 -17
  175. package/src/standalone-modules.ts +12 -9
  176. 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,eAQlC,CAAC;AAEH;;;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"}
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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;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,eAGzB,CAAC;AAEH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,IAAI,CAiCrG"}
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-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EAAE,yBAAe,CAAC,CAAC;IACxF,IAAA,+BAAqB,EAAC,OAAO,EAAE,sBAAY,CAAC,cAAc,EAAE,yBAAe,EAAE,6BAAmB,CAAC,CAAC;AACtG,CAAC;AAjCD,sEAiCC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp/client",
3
- "version": "2.2.0-next.342+fb31fc2",
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.342+fb31fc2",
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": "fb31fc22d9b5eb7244c7c0aa4a53f55d979e8d56"
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((bind, unbind, isBound, rebind, ...rest) => {
66
- // load bindings from sprotty's default module to avoid code duplication
67
- sprottyDefaultModule.registry(bind, unbind, isBound, rebind, ...rest);
68
- const context = { bind, unbind, isBound, rebind };
69
-
70
- bindLazyInjector(context);
71
-
72
- bind(EditorContextService).toSelf().inSingletonScope();
73
- bind(TYPES.IDiagramStartup).toService(EditorContextService);
74
- bind(TYPES.IEditorContextServiceProvider).toProvider<EditorContextService>(ctx => async () => ctx.container.get(EditorContextService));
75
-
76
- configureActionHandler(context, SetEditModeAction.KIND, EditorContextService);
77
- configureActionHandler(context, SetDirtyStateAction.KIND, EditorContextService);
78
-
79
- bind(FocusTracker).toSelf().inSingletonScope();
80
- configureActionHandler(context, FocusStateChangedAction.KIND, FocusTracker);
81
-
82
- // Model update initialization ------------------------------------
83
- bind(TYPES.IFeedbackActionDispatcher).to(FeedbackActionDispatcher).inSingletonScope();
84
- configureCommand(context, FeedbackAwareUpdateModelCommand);
85
- rebind(SetModelCommand).to(FeedbackAwareSetModelCommand);
86
-
87
- bind(GLSPMouseTool).toSelf().inSingletonScope();
88
- bindOrRebind(context, MouseTool).toService(GLSPMouseTool);
89
- bind(TYPES.IDiagramStartup).toService(GLSPMouseTool);
90
- bind(GLSPMousePositionTracker).toSelf().inSingletonScope();
91
- bindOrRebind(context, MousePositionTracker).toService(GLSPMousePositionTracker);
92
- bind(GLSPKeyTool).toSelf().inSingletonScope();
93
- bindOrRebind(context, KeyTool).toService(GLSPKeyTool);
94
- bind(TYPES.IDiagramStartup).toService(GLSPKeyTool);
95
-
96
- bindAsService(context, TYPES.MouseListener, SelectionClearingMouseListener);
97
- bindOrRebind(context, TYPES.ICommandStack).to(GLSPCommandStack).inSingletonScope();
98
- bind(GLSPActionDispatcher).toSelf().inSingletonScope();
99
- bindOrRebind(context, TYPES.IActionDispatcher).toService(GLSPActionDispatcher);
100
-
101
- bindOrRebind(context, ActionHandlerRegistry).to(GLSPActionHandlerRegistry).inSingletonScope();
102
-
103
- bindAsService(context, TYPES.ModelSource, GLSPModelSource);
104
- bind(DiagramLoader).toSelf().inSingletonScope();
105
- bind(ModelInitializationConstraint).to(DefaultModelInitializationConstraint).inSingletonScope();
106
-
107
- // support re-registration of model elements and views
108
- bindOrRebind(context, TYPES.SModelRegistry).to(GModelRegistry).inSingletonScope();
109
- bindOrRebind(context, TYPES.ViewRegistry).to(GViewRegistry).inSingletonScope();
110
-
111
- bind(SelectionService).toSelf().inSingletonScope();
112
- bind(TYPES.IGModelRootListener).toService(SelectionService);
113
- bind(TYPES.IDiagramStartup).toService(SelectionService);
114
-
115
- // Feedback Support ------------------------------------
116
- // Generic re-usable feedback modifying css classes
117
- configureCommand(context, ModifyCssFeedbackCommand);
118
- // We support using sprotty's MoveCommand as client-side visual feedback
119
- configureCommand(context, MoveCommand);
120
-
121
- bindAsService(context, TYPES.IVNodePostprocessor, LocationPostprocessor);
122
- bind(TYPES.HiddenVNodePostprocessor).toService(LocationPostprocessor);
123
-
124
- // Tool manager initialization ------------------------------------
125
- bind(TYPES.IToolManager).to(ToolManager).inSingletonScope();
126
- bind(TYPES.IDiagramStartup).toService(TYPES.IToolManager);
127
- bind(TYPES.IEditModeListener).toService(TYPES.IToolManager);
128
- bind(DefaultToolsEnablingKeyListener).toSelf().inSingletonScope();
129
- bind(TYPES.KeyListener).toService(DefaultToolsEnablingKeyListener);
130
- bind(ToolManagerActionHandler).toSelf().inSingletonScope();
131
- configureActionHandler(context, EnableDefaultToolsAction.KIND, ToolManagerActionHandler);
132
- configureActionHandler(context, EnableToolsAction.KIND, ToolManagerActionHandler);
133
-
134
- bind(GLSPUIExtensionRegistry).toSelf().inSingletonScope();
135
- bindOrRebind(context, TYPES.UIExtensionRegistry).toService(GLSPUIExtensionRegistry);
136
- bind(TYPES.IDiagramStartup).toService(GLSPUIExtensionRegistry);
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((bind, unbind, isBound, rebind) => {
33
- const context = { bind, unbind, isBound, rebind };
34
- configureResizeTools(context);
35
- configureViewKeyTools(context);
36
- configureMoveZoom(context);
37
- configureSearchPaletteModule(context);
38
- configureShortcutHelpTool(context);
39
- configureKeyboardToolPaletteTool(context);
40
- configureKeyboardControlTools(context);
41
- configureElementNavigationTool(context);
42
- configureFocusTrackerTool(context);
43
- configureToastTool(context);
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
- bindAsService,
19
- configureActionHandler,
20
+ TriggerEdgeCreationAction,
20
21
  TriggerNodeCreationAction,
21
- FeatureModule,
22
- BindingContext,
23
- TriggerEdgeCreationAction
22
+ bindAsService,
23
+ configureActionHandler
24
24
  } from '@eclipse-glsp/sprotty';
25
- import { GlobalKeyListenerTool } from '../global-keylistener-tool';
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 { SetEdgeTargetSelectionAction } from '../edge-autocomplete/action';
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 { EnableKeyboardGridAction, KeyboardGridCellSelectedAction } from '../keyboard-grid/action';
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((bind, unbind, isBound, rebind) => {
40
- const context = { bind, unbind, isBound, rebind };
41
- configureKeyboardControlTools(context);
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((bind, unbind, isBound, rebind) => {
33
- const context = { bind, unbind, isBound, rebind };
34
- configureKeyboardToolPaletteTool(context);
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((bind, unbind, isBound, rebind) => {
25
- const context = { bind, unbind, isBound, rebind };
26
- configureMoveZoom(context);
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((bind, unbind, isBound, rebind) => {
25
- const context = { bind, unbind, isBound, rebind };
26
- configureResizeTools(context);
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((bind, _unbind, isBound, rebind) => {
22
- const context = { bind, isBound, rebind };
23
- configureSearchPaletteModule(context);
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((bind, _unbind, isBound, rebind) => {
24
- const context = { bind, isBound, rebind };
25
- configureViewKeyTools(context);
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((bind, _unbind, isBound, _rebind) => {
39
- const context = { bind, isBound };
40
- configureCommand(context, SetBoundsCommand);
41
- configureCommand(context, RequestBoundsCommand);
42
- bind(HiddenBoundsUpdater).toSelf().inSingletonScope();
43
- bindAsService(context, TYPES.HiddenVNodePostprocessor, GLSPHiddenBoundsUpdater);
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
- configureCommand(context, LocalComputedBoundsCommand);
46
- configureCommand(context, SetBoundsFeedbackCommand);
46
+ configureCommand(context, LocalComputedBoundsCommand);
47
+ configureCommand(context, SetBoundsFeedbackCommand);
47
48
 
48
- bind(TYPES.Layouter).to(LayouterExt).inSingletonScope();
49
- bind(TYPES.LayoutRegistry).to(LayoutRegistry).inSingletonScope();
49
+ bind(TYPES.Layouter).to(LayouterExt).inSingletonScope();
50
+ bind(TYPES.LayoutRegistry).to(LayoutRegistry).inSingletonScope();
50
51
 
51
- configureLayout(context, VBoxLayouter.KIND, VBoxLayouterExt);
52
- configureLayout(context, HBoxLayouter.KIND, HBoxLayouterExt);
53
- configureLayout(context, FreeFormLayouter.KIND, FreeFormLayouter);
52
+ configureLayout(context, VBoxLayouter.KIND, VBoxLayouterExt);
53
+ configureLayout(context, HBoxLayouter.KIND, HBoxLayouterExt);
54
+ configureLayout(context, FreeFormLayouter.KIND, FreeFormLayouter);
54
55
 
55
- // backwards compatibility
56
- // eslint-disable-next-line deprecation/deprecation
57
- bind(PositionSnapper).toSelf();
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(bind => {
23
- bindAsService(bind, TYPES.IUIExtension, GlspCommandPalette);
24
- bind(TYPES.ICommandPaletteActionProviderRegistry).to(CommandPaletteActionProviderRegistry).inSingletonScope();
25
- bindAsService(bind, TYPES.ICommandPaletteActionProvider, ServerCommandPaletteActionProvider);
26
- bindAsService(bind, TYPES.IDefaultTool, CommandPaletteTool);
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(bind => {
21
- bind(TYPES.IContextMenuServiceProvider).toProvider<IContextMenuService>(ctx => async () => {
22
- if (ctx.container.isBound(TYPES.IContextMenuService)) {
23
- return ctx.container.get<IContextMenuService>(TYPES.IContextMenuService);
24
- }
25
- console.warn("'TYPES.IContextMenuService' is not bound. Use no-op implementation instead");
26
- // eslint-disable-next-line @typescript-eslint/no-empty-function
27
- return { show: () => {} };
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
- bindAsService(bind, TYPES.MouseListener, GLSPContextMenuMouseListener);
31
- bind(TYPES.IContextMenuProviderRegistry).to(ContextMenuProviderRegistry);
32
- bindAsService(bind, TYPES.IContextMenuItemProvider, ServerContextMenuItemProvider);
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((bind, _unbind, isBound) => {
21
- bind(TYPES.ICopyPasteHandler).to(ServerCopyPasteHandler);
22
- bind(TYPES.IAsyncClipboardService).to(LocalClipboardService).inSingletonScope();
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
- { requires: copyPasteModule }
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((bind, unbind, isBound, rebind) => {
24
- const context = { bind, unbind, isBound, rebind };
23
+ export const debugModule = new FeatureModule(
24
+ (bind, unbind, isBound, rebind) => {
25
+ const context = { bind, unbind, isBound, rebind };
25
26
 
26
- configureCommand(context, EnableDebugModeCommand);
27
+ configureCommand(context, EnableDebugModeCommand);
27
28
 
28
- bind(DebugManager).toSelf().inSingletonScope();
29
- configureActionHandler(context, EnableDebugModeAction.KIND, DebugManager);
29
+ bind(DebugManager).toSelf().inSingletonScope();
30
+ configureActionHandler(context, EnableDebugModeAction.KIND, DebugManager);
30
31
 
31
- bindAsService(context, TYPES.IVNodePostprocessor, DebugBoundsDecorator);
32
- });
32
+ bindAsService(context, TYPES.IVNodePostprocessor, DebugBoundsDecorator);
33
+ },
34
+ { featureId: Symbol('debug') }
35
+ );