@eclipse-glsp-examples/workflow-server 0.9.0-next.a3fa8d1.14 → 0.9.0-next.b178eb2.24
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/handler/create-activity-node-handler.d.ts +3 -3
- package/lib/handler/create-activity-node-handler.d.ts.map +1 -1
- package/lib/handler/create-activity-node-handler.js +3 -3
- package/lib/handler/create-activity-node-handler.js.map +1 -1
- package/lib/handler/create-automated-task-handler.d.ts +2 -2
- package/lib/handler/create-automated-task-handler.d.ts.map +1 -1
- package/lib/handler/create-automated-task-handler.js +2 -2
- package/lib/handler/create-automated-task-handler.js.map +1 -1
- package/lib/handler/create-category-handler.d.ts +3 -3
- package/lib/handler/create-category-handler.d.ts.map +1 -1
- package/lib/handler/create-category-handler.js +3 -3
- package/lib/handler/create-category-handler.js.map +1 -1
- package/lib/handler/create-decision-node-handler.d.ts +2 -2
- package/lib/handler/create-decision-node-handler.d.ts.map +1 -1
- package/lib/handler/create-decision-node-handler.js +2 -2
- package/lib/handler/create-decision-node-handler.js.map +1 -1
- package/lib/handler/create-edge-handler.d.ts +3 -3
- package/lib/handler/create-edge-handler.d.ts.map +1 -1
- package/lib/handler/create-edge-handler.js +2 -2
- package/lib/handler/create-edge-handler.js.map +1 -1
- package/lib/handler/create-fork-or-join-node-handler.d.ts +2 -2
- package/lib/handler/create-fork-or-join-node-handler.d.ts.map +1 -1
- package/lib/handler/create-fork-or-join-node-handler.js +2 -2
- package/lib/handler/create-fork-or-join-node-handler.js.map +1 -1
- package/lib/handler/create-manual-task-handler.d.ts +2 -2
- package/lib/handler/create-manual-task-handler.d.ts.map +1 -1
- package/lib/handler/create-manual-task-handler.js +2 -2
- package/lib/handler/create-manual-task-handler.js.map +1 -1
- package/lib/handler/create-merge-node-handler.d.ts +2 -2
- package/lib/handler/create-merge-node-handler.d.ts.map +1 -1
- package/lib/handler/create-merge-node-handler.js +2 -2
- package/lib/handler/create-merge-node-handler.js.map +1 -1
- package/lib/handler/create-task-handler.d.ts +4 -4
- package/lib/handler/create-task-handler.d.ts.map +1 -1
- package/lib/handler/create-task-handler.js +3 -3
- package/lib/handler/create-task-handler.js.map +1 -1
- package/lib/handler/create-weighted-edge-handler.d.ts +3 -3
- package/lib/handler/create-weighted-edge-handler.d.ts.map +1 -1
- package/lib/handler/create-weighted-edge-handler.js +2 -2
- package/lib/handler/create-weighted-edge-handler.js.map +1 -1
- package/lib/handler/create-workflow-node-operation-handler.d.ts +3 -3
- package/lib/handler/create-workflow-node-operation-handler.d.ts.map +1 -1
- package/lib/handler/create-workflow-node-operation-handler.js +3 -3
- package/lib/handler/create-workflow-node-operation-handler.js.map +1 -1
- package/lib/labeledit/workflow-label-edit-validator.d.ts +2 -2
- package/lib/labeledit/workflow-label-edit-validator.d.ts.map +1 -1
- package/lib/labeledit/workflow-label-edit-validator.js +2 -2
- package/lib/labeledit/workflow-label-edit-validator.js.map +1 -1
- package/lib/marker/workflow-model-validator.d.ts +2 -2
- package/lib/marker/workflow-model-validator.d.ts.map +1 -1
- package/lib/marker/workflow-model-validator.js +2 -2
- package/lib/marker/workflow-model-validator.js.map +1 -1
- package/lib/model/workflow-navigation-target-resolver.d.ts +2 -2
- package/lib/model/workflow-navigation-target-resolver.d.ts.map +1 -1
- package/lib/model/workflow-navigation-target-resolver.js +2 -2
- package/lib/model/workflow-navigation-target-resolver.js.map +1 -1
- package/lib/provider/abstract-next-or-previous-navigation-target-provider.d.ts +2 -2
- package/lib/provider/abstract-next-or-previous-navigation-target-provider.d.ts.map +1 -1
- package/lib/provider/abstract-next-or-previous-navigation-target-provider.js +3 -3
- package/lib/provider/abstract-next-or-previous-navigation-target-provider.js.map +1 -1
- package/lib/provider/node-documentation-navigation-target-provider.d.ts +2 -2
- package/lib/provider/node-documentation-navigation-target-provider.d.ts.map +1 -1
- package/lib/provider/node-documentation-navigation-target-provider.js +3 -3
- package/lib/provider/node-documentation-navigation-target-provider.js.map +1 -1
- package/lib/provider/workflow-command-palette-action-provider.d.ts +2 -2
- package/lib/provider/workflow-command-palette-action-provider.d.ts.map +1 -1
- package/lib/provider/workflow-command-palette-action-provider.js +2 -2
- package/lib/provider/workflow-command-palette-action-provider.js.map +1 -1
- package/lib/provider/workflow-context-menu-item-provider.d.ts +2 -2
- package/lib/provider/workflow-context-menu-item-provider.d.ts.map +1 -1
- package/lib/provider/workflow-context-menu-item-provider.js +2 -2
- package/lib/provider/workflow-context-menu-item-provider.js.map +1 -1
- package/lib/workflow-diagram-module.d.ts +11 -5
- package/lib/workflow-diagram-module.d.ts.map +1 -1
- package/lib/workflow-diagram-module.js +23 -16
- package/lib/workflow-diagram-module.js.map +1 -1
- package/package.json +4 -4
- package/src/handler/create-activity-node-handler.ts +4 -4
- package/src/handler/create-automated-task-handler.ts +3 -3
- package/src/handler/create-category-handler.ts +4 -4
- package/src/handler/create-decision-node-handler.ts +3 -3
- package/src/handler/create-edge-handler.ts +3 -3
- package/src/handler/create-fork-or-join-node-handler.ts +3 -3
- package/src/handler/create-manual-task-handler.ts +3 -3
- package/src/handler/create-merge-node-handler.ts +3 -3
- package/src/handler/create-task-handler.ts +5 -5
- package/src/handler/create-weighted-edge-handler.ts +3 -3
- package/src/handler/create-workflow-node-operation-handler.ts +5 -5
- package/src/labeledit/workflow-label-edit-validator.ts +3 -3
- package/src/marker/workflow-model-validator.ts +3 -3
- package/src/model/workflow-navigation-target-resolver.ts +3 -3
- package/src/provider/abstract-next-or-previous-navigation-target-provider.ts +3 -3
- package/src/provider/node-documentation-navigation-target-provider.ts +4 -4
- package/src/provider/workflow-command-palette-action-provider.ts +3 -3
- package/src/provider/workflow-context-menu-item-provider.ts +3 -3
- package/src/workflow-diagram-module.ts +35 -29
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { NavigationTarget } from '@eclipse-glsp/protocol';
|
|
17
|
-
import {
|
|
17
|
+
import { ModelState } from '@eclipse-glsp/server-node';
|
|
18
18
|
import { NavigationTargetResolution } from '@eclipse-glsp/server-node/lib/features/navigation/navigation-target-resolution';
|
|
19
19
|
import { NavigationTargetResolver } from '@eclipse-glsp/server-node/lib/features/navigation/navigation-target-resolver';
|
|
20
20
|
export declare class WorkflowNavigationTargetResolver extends NavigationTargetResolver {
|
|
21
|
-
protected readonly modelState:
|
|
21
|
+
protected readonly modelState: ModelState;
|
|
22
22
|
resolve(navigationTarget: NavigationTarget): Promise<NavigationTargetResolution>;
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=workflow-navigation-target-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-navigation-target-resolver.d.ts","sourceRoot":"","sources":["../../src/model/workflow-navigation-target-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"workflow-navigation-target-resolver.d.ts","sourceRoot":"","sources":["../../src/model/workflow-navigation-target-resolver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,gFAAgF,CAAC;AAC5H,OAAO,EAAE,wBAAwB,EAAE,MAAM,8EAA8E,CAAC;AAIxH,qBACa,gCAAiC,SAAQ,wBAAwB;IAE1E,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAEpC,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,OAAO,CAAC,0BAA0B,CAAC;CAYzF"}
|
|
@@ -30,8 +30,8 @@ let WorkflowNavigationTargetResolver = class WorkflowNavigationTargetResolver ex
|
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, inversify_1.inject)(server_node_1.
|
|
34
|
-
__metadata("design:type",
|
|
33
|
+
(0, inversify_1.inject)(server_node_1.ModelState),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
35
|
], WorkflowNavigationTargetResolver.prototype, "modelState", void 0);
|
|
36
36
|
WorkflowNavigationTargetResolver = __decorate([
|
|
37
37
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-navigation-target-resolver.js","sourceRoot":"","sources":["../../src/model/workflow-navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"workflow-navigation-target-resolver.js","sourceRoot":"","sources":["../../src/model/workflow-navigation-target-resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,2DAAuD;AACvD,iIAA4H;AAC5H,6HAAwH;AACxH,yCAA+C;AAC/C,wDAA8C;AAG9C,IAAa,gCAAgC,GAA7C,MAAa,gCAAiC,SAAQ,qDAAwB;IAI1E,KAAK,CAAC,OAAO,CAAC,gBAAkC;QAC5C,IAAI,gBAAgB,CAAC,IAAI,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACxD,MAAM,IAAI,GAAG,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAC3C,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,aAAa,CAAW,0BAAQ,CAAC,CAAC;YAC1E,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC;YAC3D,IAAI,OAAO,EAAE;gBACT,OAAO,IAAI,yDAA0B,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;aACvD;YACD,OAAO,IAAI,yDAA0B,CAAC,EAAE,EAAE,IAAI,CAAC,qBAAqB,CAAC,mCAAmC,IAAI,EAAE,CAAC,CAAC,CAAC;SACpH;QACD,OAAO,yDAA0B,CAAC,KAAK,CAAC;IAC5C,CAAC;CACJ,CAAA;AAdG;IADC,IAAA,kBAAM,EAAC,wBAAU,CAAC;;oEACuB;AAFjC,gCAAgC;IAD5C,IAAA,sBAAU,GAAE;GACA,gCAAgC,CAgB5C;AAhBY,4EAAgC"}
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Args, EditorContext, NavigationTarget } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { GEdge, ModelState } from '@eclipse-glsp/server-node';
|
|
17
18
|
import { NavigationTargetProvider } from '@eclipse-glsp/server-node/lib/features/navigation/navigation-target-provider';
|
|
18
|
-
import { GEdge, GModelState } from '@eclipse-glsp/server-node';
|
|
19
19
|
import { TaskNode } from '../graph-extension';
|
|
20
20
|
export declare abstract class AbstractNextOrPreviousNavigationTargetProvider implements NavigationTargetProvider {
|
|
21
21
|
abstract targetTypeId: string;
|
|
22
|
-
protected readonly modelState:
|
|
22
|
+
protected readonly modelState: ModelState;
|
|
23
23
|
getTargets(editorContext: EditorContext): NavigationTarget[];
|
|
24
24
|
protected createNavigationTarget(sourceURI: string | undefined, id: string): NavigationTarget;
|
|
25
25
|
protected createElementIdMap(id: string): Args;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-next-or-previous-navigation-target-provider.d.ts","sourceRoot":"","sources":["../../src/provider/abstract-next-or-previous-navigation-target-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"abstract-next-or-previous-navigation-target-provider.d.ts","sourceRoot":"","sources":["../../src/provider/abstract-next-or-previous-navigation-target-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,8EAA8E,CAAC;AAExH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,8BACsB,8CAA+C,YAAW,wBAAwB;IACpG,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAG9B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAE1C,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,gBAAgB,EAAE;IAW5D,SAAS,CAAC,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,GAAG,gBAAgB;IAI7F,SAAS,CAAC,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAM9C,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE;IAExD,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM;CAC5D"}
|
|
@@ -26,8 +26,8 @@ exports.AbstractNextOrPreviousNavigationTargetProvider = void 0;
|
|
|
26
26
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
27
|
********************************************************************************/
|
|
28
28
|
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
|
-
const inversify_1 = require("inversify");
|
|
30
29
|
const server_node_1 = require("@eclipse-glsp/server-node");
|
|
30
|
+
const inversify_1 = require("inversify");
|
|
31
31
|
const graph_extension_1 = require("../graph-extension");
|
|
32
32
|
let AbstractNextOrPreviousNavigationTargetProvider = class AbstractNextOrPreviousNavigationTargetProvider {
|
|
33
33
|
getTargets(editorContext) {
|
|
@@ -50,8 +50,8 @@ let AbstractNextOrPreviousNavigationTargetProvider = class AbstractNextOrPreviou
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, inversify_1.inject)(server_node_1.
|
|
54
|
-
__metadata("design:type",
|
|
53
|
+
(0, inversify_1.inject)(server_node_1.ModelState),
|
|
54
|
+
__metadata("design:type", Object)
|
|
55
55
|
], AbstractNextOrPreviousNavigationTargetProvider.prototype, "modelState", void 0);
|
|
56
56
|
AbstractNextOrPreviousNavigationTargetProvider = __decorate([
|
|
57
57
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstract-next-or-previous-navigation-target-provider.js","sourceRoot":"","sources":["../../src/provider/abstract-next-or-previous-navigation-target-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+E;
|
|
1
|
+
{"version":3,"file":"abstract-next-or-previous-navigation-target-provider.js","sourceRoot":"","sources":["../../src/provider/abstract-next-or-previous-navigation-target-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA+E;AAC/E,2DAA8D;AAE9D,yCAA+C;AAC/C,wDAA8C;AAG9C,IAAsB,8CAA8C,GAApE,MAAsB,8CAA8C;IAMhE,UAAU,CAAC,aAA4B;QACnC,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;QAC5C,MAAM,KAAK,GAAY,EAAE,CAAC;QAC1B,aAAa,CAAC,kBAAkB;aAC3B,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;aACxC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,0BAAQ,CAAC;aAClC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAa,CAAC;aACvB,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC7D,OAAO,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,sBAAsB,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC;IACjH,CAAC;IAES,sBAAsB,CAAC,SAA6B,EAAE,EAAU;QACtE,OAAO,EAAE,GAAG,EAAE,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC;IACvE,CAAC;IAES,kBAAkB,CAAC,EAAU;QACnC,MAAM,GAAG,GAAS,EAAE,CAAC;QACrB,GAAG,CAAC,2BAAgB,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC;QACvC,OAAO,GAAG,CAAC;IACf,CAAC;CAKJ,CAAA;AA1BG;IADC,IAAA,kBAAM,EAAC,wBAAU,CAAC;;kFACuB;AAJxB,8CAA8C;IADnE,IAAA,sBAAU,GAAE;GACS,8CAA8C,CA8BnE;AA9BqB,wGAA8C"}
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { EditorContext, NavigationTarget } from '@eclipse-glsp/protocol';
|
|
17
|
-
import {
|
|
17
|
+
import { ModelState } from '@eclipse-glsp/server-node';
|
|
18
18
|
import { NavigationTargetProvider } from '@eclipse-glsp/server-node/lib/features/navigation/navigation-target-provider';
|
|
19
19
|
export declare class NodeDocumentationNavigationTargetProvider implements NavigationTargetProvider {
|
|
20
20
|
targetTypeId: string;
|
|
21
|
-
protected readonly modelState:
|
|
21
|
+
protected readonly modelState: ModelState;
|
|
22
22
|
getTargets(editorContext: EditorContext): NavigationTarget[];
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=node-documentation-navigation-target-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-documentation-navigation-target-provider.d.ts","sourceRoot":"","sources":["../../src/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAQ,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"node-documentation-navigation-target-provider.d.ts","sourceRoot":"","sources":["../../src/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAQ,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8EAA8E,CAAC;AAIxH,qBACa,yCAA0C,YAAW,wBAAwB;IACtF,YAAY,SAAmB;IAG/B,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAE1C,UAAU,CAAC,aAAa,EAAE,aAAa,GAAG,gBAAgB,EAAE;CAsB/D"}
|
|
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.NodeDocumentationNavigationTargetProvider = void 0;
|
|
13
13
|
const server_node_1 = require("@eclipse-glsp/server-node");
|
|
14
|
+
const json_opener_options_1 = require("@eclipse-glsp/server-node/lib/features/navigation/json-opener-options");
|
|
14
15
|
const inversify_1 = require("inversify");
|
|
15
16
|
const graph_extension_1 = require("../graph-extension");
|
|
16
|
-
const json_opener_options_1 = require("@eclipse-glsp/server-node/lib/features/navigation/json-opener-options");
|
|
17
17
|
let NodeDocumentationNavigationTargetProvider = class NodeDocumentationNavigationTargetProvider {
|
|
18
18
|
constructor() {
|
|
19
19
|
this.targetTypeId = 'documentation';
|
|
@@ -40,8 +40,8 @@ let NodeDocumentationNavigationTargetProvider = class NodeDocumentationNavigatio
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
__decorate([
|
|
43
|
-
(0, inversify_1.inject)(server_node_1.
|
|
44
|
-
__metadata("design:type",
|
|
43
|
+
(0, inversify_1.inject)(server_node_1.ModelState),
|
|
44
|
+
__metadata("design:type", Object)
|
|
45
45
|
], NodeDocumentationNavigationTargetProvider.prototype, "modelState", void 0);
|
|
46
46
|
NodeDocumentationNavigationTargetProvider = __decorate([
|
|
47
47
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-documentation-navigation-target-provider.js","sourceRoot":"","sources":["../../src/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"node-documentation-navigation-target-provider.js","sourceRoot":"","sources":["../../src/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,2DAAuD;AACvD,+GAA0G;AAE1G,yCAA+C;AAC/C,wDAA8C;AAG9C,IAAa,yCAAyC,GAAtD,MAAa,yCAAyC;IAAtD;QACI,iBAAY,GAAG,eAAe,CAAC;IA2BnC,CAAC;IAtBG,UAAU,CAAC,aAA4B;QACnC,IAAI,aAAa,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE;YAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,0BAAQ,CAAC,CAAC;YAClG,IAAI,CAAC,QAAQ,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE;gBACzC,OAAO,EAAE,CAAC;aACb;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YAC5C,IAAI,CAAC,SAAS,EAAE;gBACZ,OAAO,EAAE,CAAC;aACb;YAED,MAAM,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/C,MAAM,IAAI,GAAS,EAAE,CAAC;YACtB,IAAI,CAAC,mBAAmB,CAAC,GAAG,IAAI,uCAAiB,CAAC;gBAC9C,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE;gBAChC,GAAG,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE;aACjC,CAAC,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;SACxC;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AAxBG;IADC,IAAA,kBAAM,EAAC,wBAAU,CAAC;;6EACuB;AAJjC,yCAAyC;IADrD,IAAA,sBAAU,GAAE;GACA,yCAAyC,CA4BrD;AA5BY,8FAAyC"}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Args, CommandPaletteActionProvider, GModelElement,
|
|
16
|
+
import { Args, CommandPaletteActionProvider, GModelElement, GNode, LabeledAction, ModelState, Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
export declare class WorkflowCommandPaletteActionProvider extends CommandPaletteActionProvider {
|
|
18
|
-
protected modelState:
|
|
18
|
+
protected modelState: ModelState;
|
|
19
19
|
getPaletteActions(selectedElementIds: string[], selectedElements: GModelElement[], position: Point, args?: Args): LabeledAction[];
|
|
20
20
|
protected createEdgeActions(source: GNode, targets: GNode[]): LabeledAction[];
|
|
21
21
|
protected createWeightedEdgeAction(label: string, source: GNode, node: GNode): LabeledAction;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-command-palette-action-provider.d.ts","sourceRoot":"","sources":["../../src/provider/workflow-command-palette-action-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,IAAI,EACJ,4BAA4B,EAK5B,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"workflow-command-palette-action-provider.d.ts","sourceRoot":"","sources":["../../src/provider/workflow-command-palette-action-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,IAAI,EACJ,4BAA4B,EAK5B,aAAa,EACb,KAAK,EACL,aAAa,EACb,UAAU,EACV,KAAK,EACR,MAAM,2BAA2B,CAAC;AAKnC,qBACa,oCAAqC,SAAQ,4BAA4B;IAClF,UACmB,UAAU,EAAE,UAAU,CAAC;IAE1C,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,EAAE,EAAE,gBAAgB,EAAE,aAAa,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,aAAa,EAAE;IAiEjI,SAAS,CAAC,iBAAiB,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,aAAa,EAAE;IAS7E,SAAS,CAAC,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,GAAG,aAAa;IAc5F,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,GAAG,aAAa;IAUpF,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,GAAG,MAAM;CAM1C"}
|
|
@@ -115,8 +115,8 @@ let WorkflowCommandPaletteActionProvider = class WorkflowCommandPaletteActionPro
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
__decorate([
|
|
118
|
-
(0, inversify_1.inject)(server_node_1.
|
|
119
|
-
__metadata("design:type",
|
|
118
|
+
(0, inversify_1.inject)(server_node_1.ModelState),
|
|
119
|
+
__metadata("design:type", Object)
|
|
120
120
|
], WorkflowCommandPaletteActionProvider.prototype, "modelState", void 0);
|
|
121
121
|
WorkflowCommandPaletteActionProvider = __decorate([
|
|
122
122
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-command-palette-action-provider.js","sourceRoot":"","sources":["../../src/provider/workflow-command-palette-action-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAYmC;AACnC,yCAA+C;AAC/C,wDAA8C;AAC9C,qDAAiD;AAGjD,IAAa,oCAAoC,GAAjD,MAAa,oCAAqC,SAAQ,0CAA4B;IAIlF,iBAAiB,CAAC,kBAA4B,EAAE,gBAAiC,EAAE,QAAe,EAAE,IAAW;QAC3G,MAAM,OAAO,GAAoB,EAAE,CAAC;QACpC,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,EAAE;YAC5B,OAAO,OAAO,CAAC;SAClB;QACD,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QACpC,iBAAiB;QACjB,MAAM,QAAQ,GAAG,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,mBAAK,CAAC,MAAM,CAAC;QAC1C,OAAO,CAAC,IAAI,CACR;YACI,KAAK,EAAE,uBAAuB;YAC9B,OAAO,EAAE,CAAC,iCAAmB,CAAC,MAAM,CAAC,wBAAU,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,C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C,CAC9G,CAAC;QACF,OAAO,OAAO,CAAC;IACnB,CAAC;IAES,wBAAwB,CAAC,KAAa,EAAE,MAAa,EAAE,IAAW;QACxE,OAAO;YACH,KAAK;YACL,OAAO,EAAE;gBACL,iCAAmB,CAAC,MAAM,CAAC;oBACvB,aAAa,EAAE,wBAAU,CAAC,aAAa;oBACvC,eAAe,EAAE,MAAM,CAAC,EAAE;oBAC1B,eAAe,EAAE,IAAI,CAAC,EAAE;iBAC3B,CAAC;aACL;YACD,IAAI,EAAE,gBAAgB;SACzB,CAAC;IACN,CAAC;IAES,gBAAgB,CAAC,KAAa,EAAE,MAAa,EAAE,IAAW;QAChE,OAAO;YACH,KAAK;YACL,OAAO,EAAE;gBACL,iCAAmB,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,0BAAY,CAAC,IAAI,EAAE,eAAe,EAAE,MAAM,CAAC,EAAE,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;aACzH;YACD,IAAI,EAAE,gBAAgB;SACzB,CAAC;IACN,CAAC;IAES,QAAQ,CAAC,IAAW;QAC1B,IAAI,IAAI,YAAY,0BAAQ,EAAE;YAC1B,OAAO,IAAI,CAAC,IAAI,CAAC;SACpB;QACD,OAAO,IAAI,CAAC,EAAE,CAAC;IACnB,CAAC;CACJ,CAAA;AA1GG;IADC,IAAA,kBAAM,EAAC,
|
|
1
|
+
{"version":3,"file":"workflow-command-palette-action-provider.js","sourceRoot":"","sources":["../../src/provider/workflow-command-palette-action-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAYmC;AACnC,yCAA+C;AAC/C,wDAA8C;AAC9C,qDAAiD;AAGjD,IAAa,oCAAoC,GAAjD,MAAa,oCAAqC,SAAQ,0CAA4B;IAIlF,iBAAiB,CAAC,kBAA4B,EAAE,gBAAiC,EAAE,QAAe,EAAE,IAAW;QAC3G,MAAM,OAAO,GAAoB,EAAE,CAAC;QACpC,IAAI,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wBAAU,CAAC;;wEACuB;AAFjC,oCAAoC;IADhD,IAAA,sBAAU,GAAE;GACA,oCAAoC,CA4GhD;AA5GY,oFAAoC"}
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Args, ContextMenuItemProvider,
|
|
16
|
+
import { Args, ContextMenuItemProvider, MenuItem, ModelState, Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
export declare class WorkflowContextMenuItemProvider extends ContextMenuItemProvider {
|
|
18
|
-
protected modelState:
|
|
18
|
+
protected modelState: ModelState;
|
|
19
19
|
getItems(selectedElementIds: string[], position: Point, args?: Args): MenuItem[];
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=workflow-context-menu-item-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-context-menu-item-provider.d.ts","sourceRoot":"","sources":["../../src/provider/workflow-context-menu-item-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAuB,
|
|
1
|
+
{"version":3,"file":"workflow-context-menu-item-provider.d.ts","sourceRoot":"","sources":["../../src/provider/workflow-context-menu-item-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,IAAI,EAAE,uBAAuB,EAAuB,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAK5H,qBACa,+BAAgC,SAAQ,uBAAuB;IAExE,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAEjC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE;CAyBnF"}
|
|
@@ -57,8 +57,8 @@ let WorkflowContextMenuItemProvider = class WorkflowContextMenuItemProvider exte
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
__decorate([
|
|
60
|
-
(0, inversify_1.inject)(server_node_1.
|
|
61
|
-
__metadata("design:type",
|
|
60
|
+
(0, inversify_1.inject)(server_node_1.ModelState),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
62
|
], WorkflowContextMenuItemProvider.prototype, "modelState", void 0);
|
|
63
63
|
WorkflowContextMenuItemProvider = __decorate([
|
|
64
64
|
(0, inversify_1.injectable)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-context-menu-item-provider.js","sourceRoot":"","sources":["../../src/provider/workflow-context-menu-item-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"workflow-context-menu-item-provider.js","sourceRoot":"","sources":["../../src/provider/workflow-context-menu-item-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAA4H;AAC5H,yCAA+C;AAC/C,0DAAsD;AACtD,qDAAiD;AAGjD,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,qCAAuB;IAIxE,QAAQ,CAAC,kBAA4B,EAAE,QAAe,EAAE,IAAW;QAC/D,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE;YAC/D,OAAO,EAAE,CAAC;SACb;QACD,MAAM,eAAe,GAAG,0BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnD,MAAM,UAAU,GAAa;YACzB,EAAE,EAAE,aAAa;YACjB,KAAK,EAAE,gBAAgB;YACvB,OAAO,EAAE,CAAC,iCAAmB,CAAC,MAAM,CAAC,wBAAU,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;SAClG,CAAC;QACF,MAAM,UAAU,GAAa;YACzB,EAAE,EAAE,eAAe;YACnB,KAAK,EAAE,aAAa;YACpB,OAAO,EAAE,CAAC,iCAAmB,CAAC,MAAM,CAAC,wBAAU,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,CAAC;SAC/F,CAAC;QACF,MAAM,YAAY,GAAa;YAC3B,EAAE,EAAE,KAAK;YACT,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE,EAAE;YACX,QAAQ,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;YAClC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,OAAO;SACjB,CAAC;QACF,OAAO,CAAC,YAAY,CAAC,CAAC;IAC1B,CAAC;CACJ,CAAA;AA3BG;IADC,IAAA,kBAAM,EAAC,wBAAU,CAAC;;mEACc;AAFxB,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CA6B3C;AA7BY,0EAA+B"}
|
|
@@ -13,15 +13,21 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { CommandPaletteActionProvider, ContextMenuItemProvider, DiagramConfiguration, GLSPServer, GModelDiagramModule, InstanceMultiBinding, LabelEditValidator, ModelValidator, MultiBinding, NavigationTargetProvider, NavigationTargetResolver, OperationHandlerConstructor, PopupModelFactory, ServerModule } from '@eclipse-glsp/server-node';
|
|
17
|
+
import { BindingTarget } from '@eclipse-glsp/server-node/lib/di/binding-target';
|
|
18
18
|
export declare class WorkflowServerModule extends ServerModule {
|
|
19
|
-
|
|
19
|
+
protected bindGLSPServer(): BindingTarget<GLSPServer>;
|
|
20
20
|
}
|
|
21
21
|
export declare class WorkflowDiagramModule extends GModelDiagramModule {
|
|
22
22
|
get diagramType(): string;
|
|
23
|
-
protected configure(bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind): void;
|
|
24
23
|
protected configureOperationHandlers(binding: InstanceMultiBinding<OperationHandlerConstructor>): void;
|
|
25
|
-
protected
|
|
24
|
+
protected bindDiagramConfiguration(): BindingTarget<DiagramConfiguration>;
|
|
25
|
+
protected bindNavigationTargetResolver(): BindingTarget<NavigationTargetResolver> | undefined;
|
|
26
|
+
protected bindContextMenuItemProvider(): BindingTarget<ContextMenuItemProvider> | undefined;
|
|
27
|
+
protected bindCommandPaletteActionProvider(): BindingTarget<CommandPaletteActionProvider> | undefined;
|
|
28
|
+
protected bindLabelEditValidator(): BindingTarget<LabelEditValidator> | undefined;
|
|
29
|
+
protected bindPopupModelFactory(): BindingTarget<PopupModelFactory> | undefined;
|
|
30
|
+
protected bindModelValidator(): BindingTarget<ModelValidator> | undefined;
|
|
31
|
+
protected configureNavigationTargetProviders(binding: MultiBinding<NavigationTargetProvider>): void;
|
|
26
32
|
}
|
|
27
33
|
//# sourceMappingURL=workflow-diagram-module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.d.ts","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,4BAA4B,EAC5B,uBAAuB,EACvB,oBAAoB,EACpB,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACxB,2BAA2B,EAC3B,iBAAiB,EACjB,YAAY,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,iDAAiD,CAAC;AAuBhF,qBACa,oBAAqB,SAAQ,YAAY;cAC/B,cAAc,IAAI,aAAa,CAAC,UAAU,CAAC;CAGjE;AAED,qBACa,qBAAsB,SAAQ,mBAAmB;IAC1D,IAAI,WAAW,IAAI,MAAM,CAExB;cAEkB,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,GAAG,IAAI;IAa/G,SAAS,CAAC,wBAAwB,IAAI,aAAa,CAAC,oBAAoB,CAAC;cAItD,4BAA4B,IAAI,aAAa,CAAC,wBAAwB,CAAC,GAAG,SAAS;cAInF,2BAA2B,IAAI,aAAa,CAAC,uBAAuB,CAAC,GAAG,SAAS;cAIjF,gCAAgC,IAAI,aAAa,CAAC,4BAA4B,CAAC,GAAG,SAAS;cAI3F,sBAAsB,IAAI,aAAa,CAAC,kBAAkB,CAAC,GAAG,SAAS;cAIvE,qBAAqB,IAAI,aAAa,CAAC,iBAAiB,CAAC,GAAG,SAAS;cAIrE,kBAAkB,IAAI,aAAa,CAAC,cAAc,CAAC,GAAG,SAAS;cAI/D,kCAAkC,CAAC,OAAO,EAAE,YAAY,CAAC,wBAAwB,CAAC,GAAG,IAAI;CAM/G"}
|
|
@@ -45,11 +45,8 @@ const workflow_diagram_configuration_1 = require("./workflow-diagram-configurati
|
|
|
45
45
|
const workflow_glsp_server_1 = require("./workflow-glsp-server");
|
|
46
46
|
const workflow_popup_factory_1 = require("./workflow-popup-factory");
|
|
47
47
|
let WorkflowServerModule = class WorkflowServerModule extends server_node_1.ServerModule {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
bind(workflow_glsp_server_1.WorkflowGLSPServer).toSelf().inSingletonScope();
|
|
51
|
-
rebind(server_node_1.GLSPServer).toService(workflow_glsp_server_1.WorkflowGLSPServer);
|
|
52
|
-
rebind(server_node_1.JsonRpcGLSPServer).toService(workflow_glsp_server_1.WorkflowGLSPServer);
|
|
48
|
+
bindGLSPServer() {
|
|
49
|
+
return workflow_glsp_server_1.WorkflowGLSPServer;
|
|
53
50
|
}
|
|
54
51
|
};
|
|
55
52
|
WorkflowServerModule = __decorate([
|
|
@@ -60,17 +57,6 @@ let WorkflowDiagramModule = class WorkflowDiagramModule extends server_node_1.GM
|
|
|
60
57
|
get diagramType() {
|
|
61
58
|
return 'workflow-diagram';
|
|
62
59
|
}
|
|
63
|
-
configure(bind, unbind, isBound, rebind) {
|
|
64
|
-
super.configure(bind, unbind, isBound, rebind);
|
|
65
|
-
bind(server_node_1.DiagramConfiguration).to(workflow_diagram_configuration_1.WorkflowDiagramConfiguration).inSingletonScope();
|
|
66
|
-
bind(server_node_1.NavigationTargetResolver).to(workflow_navigation_target_resolver_1.WorkflowNavigationTargetResolver).inSingletonScope();
|
|
67
|
-
bind(server_node_1.ContextMenuItemProvider).to(workflow_context_menu_item_provider_1.WorkflowContextMenuItemProvider).inSingletonScope();
|
|
68
|
-
bind(server_node_1.CommandPaletteActionProvider).to(workflow_command_palette_action_provider_1.WorkflowCommandPaletteActionProvider).inSingletonScope();
|
|
69
|
-
bind(server_node_1.LabelEditValidator).to(workflow_label_edit_validator_1.WorkflowLabelEditValidator).inSingletonScope();
|
|
70
|
-
bind(server_node_1.PopupModelFactory).to(workflow_popup_factory_1.WorkflowPopupFactory).inSingletonScope();
|
|
71
|
-
bind(server_node_1.ModelValidator).to(workflow_model_validator_1.WorkflowModelValidator).inSingletonScope();
|
|
72
|
-
bind(server_node_1.ToolPaletteItemProvider).to(server_node_1.DefaultToolPaletteItemProvider).inSingletonScope();
|
|
73
|
-
}
|
|
74
60
|
configureOperationHandlers(binding) {
|
|
75
61
|
super.configureOperationHandlers(binding);
|
|
76
62
|
binding.add(create_automated_task_handler_1.CreateAutomatedTaskHandler);
|
|
@@ -83,6 +69,27 @@ let WorkflowDiagramModule = class WorkflowDiagramModule extends server_node_1.GM
|
|
|
83
69
|
binding.add(create_decision_node_handler_1.CreateDecisionNodeHandler);
|
|
84
70
|
binding.add(create_category_handler_1.CreateCategoryHandler);
|
|
85
71
|
}
|
|
72
|
+
bindDiagramConfiguration() {
|
|
73
|
+
return workflow_diagram_configuration_1.WorkflowDiagramConfiguration;
|
|
74
|
+
}
|
|
75
|
+
bindNavigationTargetResolver() {
|
|
76
|
+
return workflow_navigation_target_resolver_1.WorkflowNavigationTargetResolver;
|
|
77
|
+
}
|
|
78
|
+
bindContextMenuItemProvider() {
|
|
79
|
+
return workflow_context_menu_item_provider_1.WorkflowContextMenuItemProvider;
|
|
80
|
+
}
|
|
81
|
+
bindCommandPaletteActionProvider() {
|
|
82
|
+
return workflow_command_palette_action_provider_1.WorkflowCommandPaletteActionProvider;
|
|
83
|
+
}
|
|
84
|
+
bindLabelEditValidator() {
|
|
85
|
+
return workflow_label_edit_validator_1.WorkflowLabelEditValidator;
|
|
86
|
+
}
|
|
87
|
+
bindPopupModelFactory() {
|
|
88
|
+
return workflow_popup_factory_1.WorkflowPopupFactory;
|
|
89
|
+
}
|
|
90
|
+
bindModelValidator() {
|
|
91
|
+
return workflow_model_validator_1.WorkflowModelValidator;
|
|
92
|
+
}
|
|
86
93
|
configureNavigationTargetProviders(binding) {
|
|
87
94
|
super.configureNavigationTargetProviders(binding);
|
|
88
95
|
binding.add(next_node_navigation_target_provider_1.NextNodeNavigationTargetProvider);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"workflow-diagram-module.js","sourceRoot":"","sources":["../src/workflow-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAemC;AAEnC,yCAAuC;AACvC,2FAAqF;AACrF,+EAA0E;AAC1E,yFAAmF;AACnF,uEAAkE;AAClE,iFAA2E;AAC3E,iFAA2E;AAC3E,qFAA+E;AAC/E,mFAA6E;AAC7E,yFAAmF;AACnF,6FAAuF;AACvF,gFAA2E;AAC3E,qGAA+F;AAC/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A0B,CAAC;IACtC,CAAC;IAEkB,qBAAqB;QACpC,OAAO,6CAAoB,CAAC;IAChC,CAAC;IAEkB,kBAAkB;QACjC,OAAO,iDAAsB,CAAC;IAClC,CAAC;IAEkB,kCAAkC,CAAC,OAA+C;QACjG,KAAK,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,uEAAgC,CAAC,CAAC;QAC9C,OAAO,CAAC,GAAG,CAAC,+EAAoC,CAAC,CAAC;QAClD,OAAO,CAAC,GAAG,CAAC,yFAAyC,CAAC,CAAC;IAC3D,CAAC;CACJ,CAAA;AApDY,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAoDjC;AApDY,sDAAqB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server",
|
|
3
|
-
"version": "0.9.0-next.
|
|
3
|
+
"version": "0.9.0-next.b178eb2.24+b178eb2",
|
|
4
4
|
"description": "GLSP node server for the workflow example",
|
|
5
5
|
"license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
|
|
6
6
|
"keywords": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"src"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eclipse-glsp/layout-elk": "0.9.0-next.
|
|
41
|
-
"@eclipse-glsp/server-node": "0.9.0-next.
|
|
40
|
+
"@eclipse-glsp/layout-elk": "0.9.0-next.b178eb2.24+b178eb2",
|
|
41
|
+
"@eclipse-glsp/server-node": "0.9.0-next.b178eb2.24+b178eb2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"clean": "rimraf tsconfig.tsbuildinfo lib",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
},
|
|
55
55
|
"main": "lib/index",
|
|
56
56
|
"types": "lib/index",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "b178eb2cf7509fdfa3349e012b33c651340dc0bb"
|
|
58
58
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { CreateNodeOperation, GNode, Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { ActivityNode, ActivityNodeBuilder } from '../graph-extension';
|
|
19
19
|
import { ModelTypes } from '../util/model-types';
|
|
@@ -21,11 +21,11 @@ import { CreateWorkflowNodeOperationHandler } from './create-workflow-node-opera
|
|
|
21
21
|
|
|
22
22
|
@injectable()
|
|
23
23
|
export abstract class CreateActivityNodeHandler extends CreateWorkflowNodeOperationHandler {
|
|
24
|
-
createNode(
|
|
25
|
-
return this.builder(relativeLocation
|
|
24
|
+
createNode(operation: CreateNodeOperation, relativeLocation?: Point): GNode | undefined {
|
|
25
|
+
return this.builder(relativeLocation).build();
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
protected builder(point: Point | undefined
|
|
28
|
+
protected builder(point: Point | undefined): ActivityNodeBuilder {
|
|
29
29
|
return ActivityNode.builder()
|
|
30
30
|
.position(point ?? Point.ORIGIN)
|
|
31
31
|
.type(this.elementTypeIds[0])
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { TaskNodeBuilder } from '../graph-extension';
|
|
19
19
|
import { ModelTypes } from '../util/model-types';
|
|
@@ -24,7 +24,7 @@ export class CreateAutomatedTaskHandler extends CreateTaskHandler {
|
|
|
24
24
|
elementTypeIds = [ModelTypes.AUTOMATED_TASK];
|
|
25
25
|
label = 'Automated Task';
|
|
26
26
|
|
|
27
|
-
protected override builder(point: Point | undefined
|
|
28
|
-
return super.builder(point
|
|
27
|
+
protected override builder(point: Point | undefined): TaskNodeBuilder {
|
|
28
|
+
return super.builder(point).addCssClass('automated');
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { ArgsUtil, CreateNodeOperation, GNode, Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { Category, CategoryNodeBuilder } from '../graph-extension';
|
|
18
18
|
import { ModelTypes } from '../util/model-types';
|
|
19
19
|
import { CreateWorkflowNodeOperationHandler } from './create-workflow-node-operation-handler';
|
|
@@ -22,11 +22,11 @@ export class CreateCategoryHandler extends CreateWorkflowNodeOperationHandler {
|
|
|
22
22
|
elementTypeIds = [ModelTypes.CATEGORY];
|
|
23
23
|
label = 'Category';
|
|
24
24
|
|
|
25
|
-
createNode(
|
|
26
|
-
return this.builder(relativeLocation
|
|
25
|
+
createNode(operation: CreateNodeOperation, relativeLocation?: Point): GNode | undefined {
|
|
26
|
+
return this.builder(relativeLocation).build();
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
protected builder(point: Point | undefined
|
|
29
|
+
protected builder(point: Point | undefined): CategoryNodeBuilder {
|
|
30
30
|
return Category.builder()
|
|
31
31
|
.type(this.elementTypeIds[0])
|
|
32
32
|
.position(point ?? Point.ORIGIN)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { ActivityNodeBuilder } from '../graph-extension';
|
|
19
19
|
import { ModelTypes } from '../util/model-types';
|
|
@@ -24,7 +24,7 @@ export class CreateDecisionNodeHandler extends CreateActivityNodeHandler {
|
|
|
24
24
|
elementTypeIds = [ModelTypes.DECISION_NODE];
|
|
25
25
|
label = 'Decision Node';
|
|
26
26
|
|
|
27
|
-
protected override builder(point
|
|
28
|
-
return super.builder(point
|
|
27
|
+
protected override builder(point?: Point): ActivityNodeBuilder {
|
|
28
|
+
return super.builder(point).addCssClass('decision');
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { DefaultTypes, GEdge, GEdgeBuilder, GModelCreateEdgeOperationHandler, GModelElement } from '@eclipse-glsp/server-node';
|
|
17
17
|
|
|
18
|
-
export class CreateEdgeHandler extends
|
|
18
|
+
export class CreateEdgeHandler extends GModelCreateEdgeOperationHandler {
|
|
19
19
|
label = 'Edge';
|
|
20
20
|
elementTypeIds = [DefaultTypes.EDGE];
|
|
21
21
|
|
|
22
|
-
createEdge(source: GModelElement, target: GModelElement
|
|
22
|
+
createEdge(source: GModelElement, target: GModelElement): GEdge | undefined {
|
|
23
23
|
return new GEdgeBuilder(GEdge).sourceId(source.id).targetId(target.id).build();
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { ActivityNodeBuilder } from '../graph-extension';
|
|
19
19
|
import { CreateActivityNodeHandler } from './create-activity-node-handler';
|
|
20
20
|
|
|
21
21
|
@injectable()
|
|
22
22
|
export abstract class CreateForkOrJoinNodeHandler extends CreateActivityNodeHandler {
|
|
23
|
-
protected override builder(point: Point | undefined
|
|
24
|
-
return super.builder(point
|
|
23
|
+
protected override builder(point: Point | undefined): ActivityNodeBuilder {
|
|
24
|
+
return super.builder(point).addCssClass('forkOrJoin').size(10, 50);
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { TaskNodeBuilder } from '../graph-extension';
|
|
19
19
|
import { ModelTypes } from '../util/model-types';
|
|
@@ -24,7 +24,7 @@ export class CreateManualTaskHandler extends CreateTaskHandler {
|
|
|
24
24
|
elementTypeIds = [ModelTypes.MANUAL_TASK];
|
|
25
25
|
label = 'Manual Task';
|
|
26
26
|
|
|
27
|
-
protected override builder(point: Point | undefined
|
|
28
|
-
return super.builder(point
|
|
27
|
+
protected override builder(point: Point | undefined): TaskNodeBuilder {
|
|
28
|
+
return super.builder(point).addCssClass('manual');
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { ActivityNodeBuilder } from '../graph-extension';
|
|
19
19
|
import { ModelTypes } from '../util/model-types';
|
|
@@ -24,7 +24,7 @@ export class CreateMergeNodeHandler extends CreateActivityNodeHandler {
|
|
|
24
24
|
elementTypeIds = [ModelTypes.MERGE_NODE];
|
|
25
25
|
label = 'Merge Node';
|
|
26
26
|
|
|
27
|
-
protected override builder(point: Point | undefined
|
|
28
|
-
return super.builder(point
|
|
27
|
+
protected override builder(point: Point | undefined): ActivityNodeBuilder {
|
|
28
|
+
return super.builder(point).addCssClass('merge');
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { Point } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { CreateNodeOperation, GNode } from '@eclipse-glsp/server-node';
|
|
18
18
|
import { injectable } from 'inversify';
|
|
19
19
|
import { TaskNode, TaskNodeBuilder } from '../graph-extension';
|
|
20
20
|
import { ModelTypes } from '../util/model-types';
|
|
@@ -22,11 +22,11 @@ import { CreateWorkflowNodeOperationHandler } from './create-workflow-node-opera
|
|
|
22
22
|
|
|
23
23
|
@injectable()
|
|
24
24
|
export abstract class CreateTaskHandler extends CreateWorkflowNodeOperationHandler {
|
|
25
|
-
createNode(
|
|
26
|
-
return this.builder(relativeLocation
|
|
25
|
+
createNode(operation: CreateNodeOperation, relativeLocation?: Point): GNode | undefined {
|
|
26
|
+
return this.builder(relativeLocation).build();
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
protected builder(point: Point | undefined
|
|
29
|
+
protected builder(point: Point | undefined): TaskNodeBuilder {
|
|
30
30
|
return TaskNode.builder()
|
|
31
31
|
.position(point ?? Point.ORIGIN)
|
|
32
32
|
.addCssClass('task')
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
16
|
+
import { GEdge, GModelCreateEdgeOperationHandler, GModelElement } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { WeightedEdge } from '../graph-extension';
|
|
18
18
|
import { ModelTypes } from '../util/model-types';
|
|
19
19
|
|
|
20
|
-
export class CreateWeightedEdgeHandler extends
|
|
20
|
+
export class CreateWeightedEdgeHandler extends GModelCreateEdgeOperationHandler {
|
|
21
21
|
elementTypeIds = [ModelTypes.WEIGHTED_EDGE];
|
|
22
22
|
label = 'Weighted edge';
|
|
23
23
|
|
|
24
|
-
createEdge(source: GModelElement, target: GModelElement
|
|
24
|
+
createEdge(source: GModelElement, target: GModelElement): GEdge | undefined {
|
|
25
25
|
return WeightedEdge.builder().sourceId(source.id).targetId(target.id).probability('medium').addCssClass('medium').build();
|
|
26
26
|
}
|
|
27
27
|
}
|