@eclipse-glsp-examples/workflow-server 0.9.0-next.fc2c95e.5 → 1.1.0-next.d0028ef.26
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/app.js +4 -4
- package/lib/app.js.map +1 -1
- package/lib/graph-extension.d.ts +1 -2
- package/lib/graph-extension.d.ts.map +1 -1
- package/lib/graph-extension.js +5 -23
- package/lib/graph-extension.js.map +1 -1
- package/lib/handler/create-activity-node-handler.d.ts +4 -4
- package/lib/handler/create-activity-node-handler.d.ts.map +1 -1
- package/lib/handler/create-activity-node-handler.js +6 -6
- package/lib/handler/create-activity-node-handler.js.map +1 -1
- package/lib/handler/create-automated-task-handler.d.ts +18 -3
- package/lib/handler/create-automated-task-handler.d.ts.map +1 -1
- package/lib/handler/create-automated-task-handler.js +4 -19
- 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 +5 -4
- package/lib/handler/create-category-handler.js.map +1 -1
- package/lib/handler/create-decision-node-handler.d.ts +18 -3
- package/lib/handler/create-decision-node-handler.d.ts.map +1 -1
- package/lib/handler/create-decision-node-handler.js +4 -19
- 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-node-handler.js +1 -1
- package/lib/handler/create-fork-node-handler.js.map +1 -1
- package/lib/handler/create-fork-or-join-node-handler.d.ts +3 -3
- package/lib/handler/create-fork-or-join-node-handler.d.ts.map +1 -1
- package/lib/handler/create-fork-or-join-node-handler.js +4 -4
- package/lib/handler/create-fork-or-join-node-handler.js.map +1 -1
- package/lib/handler/create-join-node-handler.js +1 -1
- package/lib/handler/create-join-node-handler.js.map +1 -1
- package/lib/handler/create-manual-task-handler.d.ts +18 -3
- package/lib/handler/create-manual-task-handler.d.ts.map +1 -1
- package/lib/handler/create-manual-task-handler.js +4 -19
- package/lib/handler/create-manual-task-handler.js.map +1 -1
- package/lib/handler/create-merge-node-handler.d.ts +18 -3
- package/lib/handler/create-merge-node-handler.d.ts.map +1 -1
- package/lib/handler/create-merge-node-handler.js +4 -19
- package/lib/handler/create-merge-node-handler.js.map +1 -1
- package/lib/handler/create-task-handler.d.ts +5 -5
- package/lib/handler/create-task-handler.d.ts.map +1 -1
- package/lib/handler/create-task-handler.js +7 -7
- 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 +4 -4
- package/lib/handler/create-workflow-node-operation-handler.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.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 +3 -3
- package/lib/labeledit/workflow-label-edit-validator.js.map +1 -1
- package/lib/layout/workflow-layout-configurator.d.ts.map +1 -1
- package/lib/layout/workflow-layout-configurator.js +1 -1
- package/lib/layout/workflow-layout-configurator.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 +3 -3
- 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 +3 -3
- 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 +4 -4
- package/lib/provider/abstract-next-or-previous-navigation-target-provider.js.map +1 -1
- package/lib/provider/next-node-navigation-target-provider.js +1 -1
- package/lib/provider/next-node-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 +4 -4
- package/lib/provider/node-documentation-navigation-target-provider.js.map +1 -1
- package/lib/provider/previous-node-navigation-target-provider.js +1 -1
- package/lib/provider/previous-node-navigation-target-provider.js.map +1 -1
- package/lib/provider/workflow-command-palette-action-provider.d.ts +6 -6
- package/lib/provider/workflow-command-palette-action-provider.d.ts.map +1 -1
- package/lib/provider/workflow-command-palette-action-provider.js +45 -12
- 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 +22 -9
- package/lib/provider/workflow-context-menu-item-provider.js.map +1 -1
- package/lib/workflow-diagram-configuration.js +2 -2
- package/lib/workflow-diagram-configuration.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 +25 -18
- package/lib/workflow-diagram-module.js.map +1 -1
- package/lib/workflow-glsp-server.d.ts.map +1 -1
- package/lib/workflow-glsp-server.js +2 -2
- package/lib/workflow-glsp-server.js.map +1 -1
- package/lib/workflow-popup-factory.js +1 -1
- package/lib/workflow-popup-factory.js.map +1 -1
- package/package.json +5 -8
- package/src/graph-extension.ts +9 -28
- package/src/handler/create-activity-node-handler.ts +6 -6
- package/src/handler/create-automated-task-handler.ts +5 -5
- package/src/handler/create-category-handler.ts +6 -5
- package/src/handler/create-decision-node-handler.ts +5 -5
- package/src/handler/create-edge-handler.ts +3 -3
- package/src/handler/create-fork-or-join-node-handler.ts +4 -4
- package/src/handler/create-manual-task-handler.ts +5 -5
- package/src/handler/create-merge-node-handler.ts +5 -5
- package/src/handler/create-task-handler.ts +7 -7
- package/src/handler/create-weighted-edge-handler.ts +3 -3
- package/src/handler/create-workflow-node-operation-handler.ts +8 -8
- package/src/labeledit/workflow-label-edit-validator.ts +3 -3
- package/src/layout/workflow-layout-configurator.ts +1 -1
- 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 +54 -36
- package/src/provider/workflow-context-menu-item-provider.ts +22 -9
- package/src/workflow-diagram-module.ts +36 -25
- package/src/workflow-glsp-server.ts +2 -2
package/lib/app.js
CHANGED
|
@@ -22,16 +22,16 @@ const inversify_1 = require("inversify");
|
|
|
22
22
|
const workflow_layout_configurator_1 = require("./layout/workflow-layout-configurator");
|
|
23
23
|
const workflow_diagram_module_1 = require("./workflow-diagram-module");
|
|
24
24
|
function launch(argv) {
|
|
25
|
-
const options = server_node_1.createSocketCliParser().parse(argv);
|
|
25
|
+
const options = (0, server_node_1.createSocketCliParser)().parse(argv);
|
|
26
26
|
const appContainer = new inversify_1.Container();
|
|
27
|
-
appContainer.load(server_node_1.createAppModule(options));
|
|
27
|
+
appContainer.load((0, server_node_1.createAppModule)(options));
|
|
28
28
|
const logger = appContainer.get(server_node_1.LoggerFactory)('WorkflowServerApp');
|
|
29
29
|
const launcher = appContainer.resolve(server_node_1.SocketServerLauncher);
|
|
30
|
-
const elkLayoutModule = layout_elk_1.configureELKLayoutModule({ algorithms: ['layered'], layoutConfigurator: workflow_layout_configurator_1.WorkflowLayoutConfigurator });
|
|
30
|
+
const elkLayoutModule = (0, layout_elk_1.configureELKLayoutModule)({ algorithms: ['layered'], layoutConfigurator: workflow_layout_configurator_1.WorkflowLayoutConfigurator });
|
|
31
31
|
const serverModule = new workflow_diagram_module_1.WorkflowServerModule().configureDiagramModule(new workflow_diagram_module_1.WorkflowDiagramModule(), elkLayoutModule);
|
|
32
32
|
const errorHandler = (error) => logger.error('Error in workflow server launcher:', error);
|
|
33
33
|
launcher.configure(serverModule);
|
|
34
|
-
server_node_1.resolveAndCatch(() => launcher.start({ port: options.port, host: options.host }), errorHandler);
|
|
34
|
+
(0, server_node_1.resolveAndCatch)(() => launcher.start({ port: options.port, host: options.host }), errorHandler);
|
|
35
35
|
}
|
|
36
36
|
exports.launch = launch;
|
|
37
37
|
//# sourceMappingURL=app.js.map
|
package/lib/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAAoE;AACpE,2DAAyI;AACzI,yCAAsC;AACtC,wFAAmF;AACnF,uEAAwF;AAExF,SAAgB,MAAM,CAAC,IAAe;IAClC,MAAM,OAAO,GAAG,mCAAqB,
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yDAAoE;AACpE,2DAAyI;AACzI,yCAAsC;AACtC,wFAAmF;AACnF,uEAAwF;AAExF,SAAgB,MAAM,CAAC,IAAe;IAClC,MAAM,OAAO,GAAG,IAAA,mCAAqB,GAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,IAAI,qBAAS,EAAE,CAAC;IACrC,YAAY,CAAC,IAAI,CAAC,IAAA,6BAAe,EAAC,OAAO,CAAC,CAAC,CAAC;IAE5C,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAgB,2BAAa,CAAC,CAAC,mBAAmB,CAAC,CAAC;IACnF,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,kCAAoB,CAAC,CAAC;IAC5D,MAAM,eAAe,GAAG,IAAA,qCAAwB,EAAC,EAAE,UAAU,EAAE,CAAC,SAAS,CAAC,EAAE,kBAAkB,EAAE,yDAA0B,EAAE,CAAC,CAAC;IAC9H,MAAM,YAAY,GAAG,IAAI,8CAAoB,EAAE,CAAC,sBAAsB,CAAC,IAAI,+CAAqB,EAAE,EAAE,eAAe,CAAC,CAAC;IAErH,MAAM,YAAY,GAAG,CAAC,KAAU,EAAQ,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC;IACrG,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IACjC,IAAA,6BAAe,EAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC;AACpG,CAAC;AAbD,wBAaC"}
|
package/lib/graph-extension.d.ts
CHANGED
|
@@ -34,10 +34,9 @@ export declare class TaskNodeBuilder<T extends TaskNode = TaskNode> extends GNod
|
|
|
34
34
|
taskType(tasktype: string): this;
|
|
35
35
|
references(references: string): this;
|
|
36
36
|
children(): this;
|
|
37
|
-
|
|
37
|
+
build(): T;
|
|
38
38
|
protected createCompartmentHeader(): GLabel;
|
|
39
39
|
protected createCompartmentIcon(): GCompartment;
|
|
40
|
-
protected createCompartmentIconLabel(): GLabel;
|
|
41
40
|
}
|
|
42
41
|
export declare class WeightedEdge extends GEdge {
|
|
43
42
|
probability?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-extension.d.ts","sourceRoot":"","sources":["../src/graph-extension.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,CAAC,uBAAuB,IAAI,MAAM;IAQ3C,SAAS,CAAC,qBAAqB,IAAI,YAAY;CAMlD;AAED,qBAAa,YAAa,SAAQ,KAAK;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;WAEL,OAAO,IAAI,mBAAmB;CAGjD;AAED,qBAAa,mBAAmB,CAAC,CAAC,SAAS,YAAY,GAAG,YAAY,CAAE,SAAQ,YAAY,CAAC,CAAC,CAAC;IAC3F,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CAIzC;AAED,qBAAa,QAAS,SAAQ,YAAY;IACtC,IAAI,EAAE,MAAM,CAAC;WAEG,OAAO,IAAI,mBAAmB;CAMjD;AAED,qBAAa,mBAAmB,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC1F,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKxB,QAAQ,IAAI,IAAI;IAMhB,SAAS,CAAC,sBAAsB,IAAI,YAAY;IAWhD,SAAS,CAAC,uBAAuB,IAAI,MAAM;IAQ3C,SAAS,CAAC,uBAAuB,IAAI,YAAY;CAQpD"}
|
package/lib/graph-extension.js
CHANGED
|
@@ -55,19 +55,11 @@ class TaskNodeBuilder extends server_node_1.GNodeBuilder {
|
|
|
55
55
|
return this;
|
|
56
56
|
}
|
|
57
57
|
children() {
|
|
58
|
-
this.proxy.children.push(this.createCompartment());
|
|
59
58
|
return this;
|
|
60
59
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
return
|
|
64
|
-
.type(model_types_1.ModelTypes.COMP_HEADER)
|
|
65
|
-
.id(this.proxy.id + '_header')
|
|
66
|
-
.layout('hbox')
|
|
67
|
-
.addLayoutOptions(layoutOptions)
|
|
68
|
-
.add(this.createCompartmentIcon())
|
|
69
|
-
.add(this.createCompartmentHeader())
|
|
70
|
-
.build();
|
|
60
|
+
build() {
|
|
61
|
+
this.layout('hbox').addLayoutOption('paddingRight', 10).add(this.createCompartmentIcon()).add(this.createCompartmentHeader());
|
|
62
|
+
return super.build();
|
|
71
63
|
}
|
|
72
64
|
createCompartmentHeader() {
|
|
73
65
|
return new server_node_1.GLabelBuilder(server_node_1.GLabel)
|
|
@@ -77,19 +69,9 @@ class TaskNodeBuilder extends server_node_1.GNodeBuilder {
|
|
|
77
69
|
.build();
|
|
78
70
|
}
|
|
79
71
|
createCompartmentIcon() {
|
|
80
|
-
return
|
|
81
|
-
.type(model_types_1.ModelTypes.ICON)
|
|
72
|
+
return server_node_1.GCompartment.builder()
|
|
82
73
|
.id(this.proxy.id + '_icon')
|
|
83
|
-
.
|
|
84
|
-
.addLayoutOptions({ hAlign: 'center', resizeContainer: false })
|
|
85
|
-
.add(this.createCompartmentIconLabel())
|
|
86
|
-
.build();
|
|
87
|
-
}
|
|
88
|
-
createCompartmentIconLabel() {
|
|
89
|
-
return new server_node_1.GLabelBuilder(server_node_1.GLabel)
|
|
90
|
-
.type(model_types_1.ModelTypes.LABEL_ICON)
|
|
91
|
-
.id(this.proxy.id + '_ticon')
|
|
92
|
-
.text(`${this.proxy.taskType.toUpperCase().charAt(0)}`)
|
|
74
|
+
.type(model_types_1.ModelTypes.ICON)
|
|
93
75
|
.build();
|
|
94
76
|
}
|
|
95
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph-extension.js","sourceRoot":"","sources":["../src/graph-extension.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAWmC;AACnC,oDAAgD;AAEhD,MAAa,YAAa,SAAQ,mBAAK;IAGnC,MAAM,
|
|
1
|
+
{"version":3,"file":"graph-extension.js","sourceRoot":"","sources":["../src/graph-extension.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAWmC;AACnC,oDAAgD;AAEhD,MAAa,YAAa,SAAQ,mBAAK;IAGnC,MAAM,CAAU,OAAO;QACnB,OAAO,IAAI,mBAAmB,CAAC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AAC;aAC9D,KAAK,EAAE,CAAC;IACjB,CAAC;CACJ;AAvCD,kDAuCC"}
|
|
@@ -13,11 +13,11 @@
|
|
|
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 { CreateWorkflowNodeOperationHandler } from './create-workflow-node-operation-handler';
|
|
16
|
+
import { CreateNodeOperation, GNode, Point } from '@eclipse-glsp/server-node';
|
|
18
17
|
import { ActivityNodeBuilder } from '../graph-extension';
|
|
18
|
+
import { CreateWorkflowNodeOperationHandler } from './create-workflow-node-operation-handler';
|
|
19
19
|
export declare abstract class CreateActivityNodeHandler extends CreateWorkflowNodeOperationHandler {
|
|
20
|
-
createNode(
|
|
21
|
-
protected builder(point: Point | undefined
|
|
20
|
+
createNode(operation: CreateNodeOperation, relativeLocation?: Point): GNode | undefined;
|
|
21
|
+
protected builder(point: Point | undefined): ActivityNodeBuilder;
|
|
22
22
|
}
|
|
23
23
|
//# sourceMappingURL=create-activity-node-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-activity-node-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-activity-node-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-activity-node-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-activity-node-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,mBAAmB,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAE9E,OAAO,EAAgB,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEvE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAE9F,8BACsB,yBAA0B,SAAQ,kCAAkC;IACtF,UAAU,CAAC,SAAS,EAAE,mBAAmB,EAAE,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS;IAIvF,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,mBAAmB;CAMnE"}
|
|
@@ -23,23 +23,23 @@ exports.CreateActivityNodeHandler = void 0;
|
|
|
23
23
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
24
|
********************************************************************************/
|
|
25
25
|
const server_node_1 = require("@eclipse-glsp/server-node");
|
|
26
|
-
const create_workflow_node_operation_handler_1 = require("./create-workflow-node-operation-handler");
|
|
27
26
|
const inversify_1 = require("inversify");
|
|
28
27
|
const graph_extension_1 = require("../graph-extension");
|
|
29
28
|
const model_types_1 = require("../util/model-types");
|
|
29
|
+
const create_workflow_node_operation_handler_1 = require("./create-workflow-node-operation-handler");
|
|
30
30
|
let CreateActivityNodeHandler = class CreateActivityNodeHandler extends create_workflow_node_operation_handler_1.CreateWorkflowNodeOperationHandler {
|
|
31
|
-
createNode(
|
|
32
|
-
return this.builder(relativeLocation
|
|
31
|
+
createNode(operation, relativeLocation) {
|
|
32
|
+
return this.builder(relativeLocation).build();
|
|
33
33
|
}
|
|
34
|
-
builder(point
|
|
34
|
+
builder(point) {
|
|
35
35
|
return graph_extension_1.ActivityNode.builder()
|
|
36
|
-
.position(point !== null && point !== void 0 ? point : server_node_1.
|
|
36
|
+
.position(point !== null && point !== void 0 ? point : server_node_1.Point.ORIGIN)
|
|
37
37
|
.type(this.elementTypeIds[0])
|
|
38
38
|
.nodeType(model_types_1.ModelTypes.toNodeType(this.elementTypeIds[0]));
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
CreateActivityNodeHandler = __decorate([
|
|
42
|
-
inversify_1.injectable()
|
|
42
|
+
(0, inversify_1.injectable)()
|
|
43
43
|
], CreateActivityNodeHandler);
|
|
44
44
|
exports.CreateActivityNodeHandler = CreateActivityNodeHandler;
|
|
45
45
|
//# sourceMappingURL=create-activity-node-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-activity-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-activity-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"create-activity-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-activity-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAA8E;AAC9E,yCAAuC;AACvC,wDAAuE;AACvE,qDAAiD;AACjD,qGAA8F;AAG9F,IAAsB,yBAAyB,GAA/C,MAAsB,yBAA0B,SAAQ,2EAAkC;IACtF,UAAU,CAAC,SAA8B,EAAE,gBAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAC;IAClD,CAAC;IAES,OAAO,CAAC,KAAwB;QACtC,OAAO,8BAAY,CAAC,OAAO,EAAE;aACxB,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,mBAAK,CAAC,MAAM,CAAC;aAC/B,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;aAC5B,QAAQ,CAAC,wBAAU,CAAC,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjE,CAAC;CACJ,CAAA;AAXqB,yBAAyB;IAD9C,IAAA,sBAAU,GAAE;GACS,yBAAyB,CAW9C;AAXqB,8DAAyB"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
3
17
|
import { TaskNodeBuilder } from '../graph-extension';
|
|
18
|
+
import { CreateTaskHandler } from './create-task-handler';
|
|
4
19
|
export declare class CreateAutomatedTaskHandler extends CreateTaskHandler {
|
|
5
20
|
elementTypeIds: string[];
|
|
6
21
|
label: string;
|
|
7
|
-
protected builder(point: Point | undefined
|
|
22
|
+
protected builder(point: Point | undefined): TaskNodeBuilder;
|
|
8
23
|
}
|
|
9
24
|
//# sourceMappingURL=create-automated-task-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-automated-task-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-automated-task-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-automated-task-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-automated-task-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBACa,0BAA2B,SAAQ,iBAAiB;IAC7D,cAAc,WAA+B;IAC7C,KAAK,SAAoB;cAEN,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,eAAe;CAGxE"}
|
|
@@ -7,36 +7,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.CreateAutomatedTaskHandler = void 0;
|
|
10
|
-
|
|
11
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
12
|
-
*
|
|
13
|
-
* This program and the accompanying materials are made available under the
|
|
14
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
15
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
16
|
-
*
|
|
17
|
-
* This Source Code may also be made available under the following Secondary
|
|
18
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
19
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
20
|
-
* with the GNU Classpath Exception which is available at
|
|
21
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
22
|
-
*
|
|
23
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
|
-
********************************************************************************/
|
|
10
|
+
const inversify_1 = require("inversify");
|
|
25
11
|
const model_types_1 = require("../util/model-types");
|
|
26
12
|
const create_task_handler_1 = require("./create-task-handler");
|
|
27
|
-
const inversify_1 = require("inversify");
|
|
28
13
|
let CreateAutomatedTaskHandler = class CreateAutomatedTaskHandler extends create_task_handler_1.CreateTaskHandler {
|
|
29
14
|
constructor() {
|
|
30
15
|
super(...arguments);
|
|
31
16
|
this.elementTypeIds = [model_types_1.ModelTypes.AUTOMATED_TASK];
|
|
32
17
|
this.label = 'Automated Task';
|
|
33
18
|
}
|
|
34
|
-
builder(point
|
|
35
|
-
return super.builder(point
|
|
19
|
+
builder(point) {
|
|
20
|
+
return super.builder(point).addCssClass('automated');
|
|
36
21
|
}
|
|
37
22
|
};
|
|
38
23
|
CreateAutomatedTaskHandler = __decorate([
|
|
39
|
-
inversify_1.injectable()
|
|
24
|
+
(0, inversify_1.injectable)()
|
|
40
25
|
], CreateAutomatedTaskHandler);
|
|
41
26
|
exports.CreateAutomatedTaskHandler = CreateAutomatedTaskHandler;
|
|
42
27
|
//# sourceMappingURL=create-automated-task-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-automated-task-handler.js","sourceRoot":"","sources":["../../src/handler/create-automated-task-handler.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-automated-task-handler.js","sourceRoot":"","sources":["../../src/handler/create-automated-task-handler.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAEvC,qDAAiD;AACjD,+DAA0D;AAG1D,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,uCAAiB;IAAjE;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,cAAc,CAAC,CAAC;QAC7C,UAAK,GAAG,gBAAgB,CAAC;IAK7B,CAAC;IAHsB,OAAO,CAAC,KAAwB;QAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACzD,CAAC;CACJ,CAAA;AAPY,0BAA0B;IADtC,IAAA,sBAAU,GAAE;GACA,0BAA0B,CAOtC;AAPY,gEAA0B"}
|
|
@@ -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 { CreateNodeOperation, GNode, Point } from '@eclipse-glsp/server-node';
|
|
17
17
|
import { CategoryNodeBuilder } from '../graph-extension';
|
|
18
18
|
import { CreateWorkflowNodeOperationHandler } from './create-workflow-node-operation-handler';
|
|
19
19
|
export declare class CreateCategoryHandler extends CreateWorkflowNodeOperationHandler {
|
|
20
20
|
elementTypeIds: string[];
|
|
21
21
|
label: string;
|
|
22
|
-
createNode(
|
|
23
|
-
protected builder(point: Point | undefined
|
|
22
|
+
createNode(operation: CreateNodeOperation, relativeLocation?: Point): GNode | undefined;
|
|
23
|
+
protected builder(point: Point | undefined): CategoryNodeBuilder;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=create-category-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-category-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-category-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"create-category-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-category-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAY,mBAAmB,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,EAAY,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEnE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0CAA0C,CAAC;AAE9F,qBAAa,qBAAsB,SAAQ,kCAAkC;IACzE,cAAc,WAAyB;IACvC,KAAK,SAAc;IAEnB,UAAU,CAAC,SAAS,EAAE,mBAAmB,EAAE,gBAAgB,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,SAAS;IAIvF,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,mBAAmB;CAQnE"}
|
|
@@ -26,14 +26,15 @@ class CreateCategoryHandler extends create_workflow_node_operation_handler_1.Cre
|
|
|
26
26
|
this.elementTypeIds = [model_types_1.ModelTypes.CATEGORY];
|
|
27
27
|
this.label = 'Category';
|
|
28
28
|
}
|
|
29
|
-
createNode(
|
|
30
|
-
return this.builder(relativeLocation
|
|
29
|
+
createNode(operation, relativeLocation) {
|
|
30
|
+
return this.builder(relativeLocation).build();
|
|
31
31
|
}
|
|
32
|
-
builder(point
|
|
32
|
+
builder(point) {
|
|
33
33
|
return graph_extension_1.Category.builder()
|
|
34
34
|
.type(this.elementTypeIds[0])
|
|
35
|
-
.position(point !== null && point !== void 0 ? point : server_node_1.
|
|
35
|
+
.position(point !== null && point !== void 0 ? point : server_node_1.Point.ORIGIN)
|
|
36
36
|
.name(this.label.replace(' ', '') + this.modelState.index.getAllByClass(graph_extension_1.Category).length)
|
|
37
|
+
.addArgs(server_node_1.ArgsUtil.cornerRadius(5))
|
|
37
38
|
.children();
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-category-handler.js","sourceRoot":"","sources":["../../src/handler/create-category-handler.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"create-category-handler.js","sourceRoot":"","sources":["../../src/handler/create-category-handler.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAAwF;AACxF,wDAAmE;AACnE,qDAAiD;AACjD,qGAA8F;AAE9F,MAAa,qBAAsB,SAAQ,2EAAkC;IAA7E;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,QAAQ,CAAC,CAAC;QACvC,UAAK,GAAG,UAAU,CAAC;IAcvB,CAAC;IAZG,UAAU,CAAC,SAA8B,EAAE,gBAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAC;IAClD,CAAC;IAES,OAAO,CAAC,KAAwB;QACtC,OAAO,0BAAQ,CAAC,OAAO,EAAE;aACpB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;aAC5B,QAAQ,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,mBAAK,CAAC,MAAM,CAAC;aAC/B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,aAAa,CAAC,0BAAQ,CAAC,CAAC,MAAM,CAAC;aACxF,OAAO,CAAC,sBAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;aACjC,QAAQ,EAAE,CAAC;IACpB,CAAC;CACJ;AAhBD,sDAgBC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
3
17
|
import { ActivityNodeBuilder } from '../graph-extension';
|
|
18
|
+
import { CreateActivityNodeHandler } from './create-activity-node-handler';
|
|
4
19
|
export declare class CreateDecisionNodeHandler extends CreateActivityNodeHandler {
|
|
5
20
|
elementTypeIds: string[];
|
|
6
21
|
label: string;
|
|
7
|
-
protected builder(point
|
|
22
|
+
protected builder(point?: Point): ActivityNodeBuilder;
|
|
8
23
|
}
|
|
9
24
|
//# sourceMappingURL=create-decision-node-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-decision-node-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-decision-node-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-decision-node-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-decision-node-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,qBACa,yBAA0B,SAAQ,yBAAyB;IACpE,cAAc,WAA8B;IAC5C,KAAK,SAAmB;cAEL,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,mBAAmB;CAGjE"}
|
|
@@ -7,23 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.CreateDecisionNodeHandler = void 0;
|
|
10
|
-
/********************************************************************************
|
|
11
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
12
|
-
*
|
|
13
|
-
* This program and the accompanying materials are made available under the
|
|
14
|
-
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
15
|
-
* http://www.eclipse.org/legal/epl-2.0.
|
|
16
|
-
*
|
|
17
|
-
* This Source Code may also be made available under the following Secondary
|
|
18
|
-
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
19
|
-
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
20
|
-
* with the GNU Classpath Exception which is available at
|
|
21
|
-
* https://www.gnu.org/software/classpath/license.html.
|
|
22
|
-
*
|
|
23
|
-
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
|
-
********************************************************************************/
|
|
25
|
-
const model_types_1 = require("../util/model-types");
|
|
26
10
|
const inversify_1 = require("inversify");
|
|
11
|
+
const model_types_1 = require("../util/model-types");
|
|
27
12
|
const create_activity_node_handler_1 = require("./create-activity-node-handler");
|
|
28
13
|
let CreateDecisionNodeHandler = class CreateDecisionNodeHandler extends create_activity_node_handler_1.CreateActivityNodeHandler {
|
|
29
14
|
constructor() {
|
|
@@ -31,12 +16,12 @@ let CreateDecisionNodeHandler = class CreateDecisionNodeHandler extends create_a
|
|
|
31
16
|
this.elementTypeIds = [model_types_1.ModelTypes.DECISION_NODE];
|
|
32
17
|
this.label = 'Decision Node';
|
|
33
18
|
}
|
|
34
|
-
builder(point
|
|
35
|
-
return super.builder(point
|
|
19
|
+
builder(point) {
|
|
20
|
+
return super.builder(point).addCssClass('decision');
|
|
36
21
|
}
|
|
37
22
|
};
|
|
38
23
|
CreateDecisionNodeHandler = __decorate([
|
|
39
|
-
inversify_1.injectable()
|
|
24
|
+
(0, inversify_1.injectable)()
|
|
40
25
|
], CreateDecisionNodeHandler);
|
|
41
26
|
exports.CreateDecisionNodeHandler = CreateDecisionNodeHandler;
|
|
42
27
|
//# sourceMappingURL=create-decision-node-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-decision-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-decision-node-handler.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"create-decision-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-decision-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAEvC,qDAAiD;AACjD,iFAA2E;AAG3E,IAAa,yBAAyB,GAAtC,MAAa,yBAA0B,SAAQ,wDAAyB;IAAxE;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,aAAa,CAAC,CAAC;QAC5C,UAAK,GAAG,eAAe,CAAC;IAK5B,CAAC;IAHsB,OAAO,CAAC,KAAa;QACpC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IACxD,CAAC;CACJ,CAAA;AAPY,yBAAyB;IADrC,IAAA,sBAAU,GAAE;GACA,yBAAyB,CAOrC;AAPY,8DAAyB"}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
export declare class CreateEdgeHandler extends
|
|
16
|
+
import { GEdge, GModelCreateEdgeOperationHandler, GModelElement } from '@eclipse-glsp/server-node';
|
|
17
|
+
export declare class CreateEdgeHandler extends GModelCreateEdgeOperationHandler {
|
|
18
18
|
label: string;
|
|
19
19
|
elementTypeIds: string[];
|
|
20
|
-
createEdge(source: GModelElement, target: GModelElement
|
|
20
|
+
createEdge(source: GModelElement, target: GModelElement): GEdge | undefined;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=create-edge-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-edge-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-edge-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,
|
|
1
|
+
{"version":3,"file":"create-edge-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-edge-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAgB,KAAK,EAAgB,gCAAgC,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/H,qBAAa,iBAAkB,SAAQ,gCAAgC;IACnE,KAAK,SAAU;IACf,cAAc,WAAuB;IAErC,UAAU,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,aAAa,GAAG,KAAK,GAAG,SAAS;CAG9E"}
|
|
@@ -17,13 +17,13 @@ exports.CreateEdgeHandler = void 0;
|
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
19
|
const server_node_1 = require("@eclipse-glsp/server-node");
|
|
20
|
-
class CreateEdgeHandler extends server_node_1.
|
|
20
|
+
class CreateEdgeHandler extends server_node_1.GModelCreateEdgeOperationHandler {
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.label = 'Edge';
|
|
24
24
|
this.elementTypeIds = [server_node_1.DefaultTypes.EDGE];
|
|
25
25
|
}
|
|
26
|
-
createEdge(source, target
|
|
26
|
+
createEdge(source, target) {
|
|
27
27
|
return new server_node_1.GEdgeBuilder(server_node_1.GEdge).sourceId(source.id).targetId(target.id).build();
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-edge-handler.js","sourceRoot":"","sources":["../../src/handler/create-edge-handler.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,
|
|
1
|
+
{"version":3,"file":"create-edge-handler.js","sourceRoot":"","sources":["../../src/handler/create-edge-handler.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,2DAA+H;AAE/H,MAAa,iBAAkB,SAAQ,8CAAgC;IAAvE;;QACI,UAAK,GAAG,MAAM,CAAC;QACf,mBAAc,GAAG,CAAC,0BAAY,CAAC,IAAI,CAAC,CAAC;IAKzC,CAAC;IAHG,UAAU,CAAC,MAAqB,EAAE,MAAqB;QACnD,OAAO,IAAI,0BAAY,CAAC,mBAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;IACnF,CAAC;CACJ;AAPD,8CAOC"}
|
|
@@ -33,7 +33,7 @@ let CreateForkNodeHandler = class CreateForkNodeHandler extends create_fork_or_j
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
CreateForkNodeHandler = __decorate([
|
|
36
|
-
inversify_1.injectable()
|
|
36
|
+
(0, inversify_1.injectable)()
|
|
37
37
|
], CreateForkNodeHandler);
|
|
38
38
|
exports.CreateForkNodeHandler = CreateForkNodeHandler;
|
|
39
39
|
//# sourceMappingURL=create-fork-node-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fork-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-fork-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAiD;AACjD,yFAAiF;AACjF,yCAAuC;AAGvC,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,8DAA2B;IAAtE;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,SAAS,CAAC,CAAC;QACxC,UAAK,GAAG,WAAW,CAAC;IACxB,CAAC;CAAA,CAAA;AAHY,qBAAqB;IADjC,sBAAU,
|
|
1
|
+
{"version":3,"file":"create-fork-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-fork-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAiD;AACjD,yFAAiF;AACjF,yCAAuC;AAGvC,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,8DAA2B;IAAtE;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,SAAS,CAAC,CAAC;QACxC,UAAK,GAAG,WAAW,CAAC;IACxB,CAAC;CAAA,CAAA;AAHY,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAGjC;AAHY,sDAAqB"}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Point
|
|
17
|
-
import { CreateActivityNodeHandler } from './create-activity-node-handler';
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
18
17
|
import { ActivityNodeBuilder } from '../graph-extension';
|
|
18
|
+
import { CreateActivityNodeHandler } from './create-activity-node-handler';
|
|
19
19
|
export declare abstract class CreateForkOrJoinNodeHandler extends CreateActivityNodeHandler {
|
|
20
|
-
protected builder(point: Point | undefined
|
|
20
|
+
protected builder(point: Point | undefined): ActivityNodeBuilder;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=create-fork-or-join-node-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fork-or-join-node-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-fork-or-join-node-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"create-fork-or-join-node-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-fork-or-join-node-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAE3E,8BACsB,2BAA4B,SAAQ,yBAAyB;cAC5D,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,mBAAmB;CAG5E"}
|
|
@@ -7,15 +7,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.CreateForkOrJoinNodeHandler = void 0;
|
|
10
|
-
const create_activity_node_handler_1 = require("./create-activity-node-handler");
|
|
11
10
|
const inversify_1 = require("inversify");
|
|
11
|
+
const create_activity_node_handler_1 = require("./create-activity-node-handler");
|
|
12
12
|
let CreateForkOrJoinNodeHandler = class CreateForkOrJoinNodeHandler extends create_activity_node_handler_1.CreateActivityNodeHandler {
|
|
13
|
-
builder(point
|
|
14
|
-
return super.builder(point
|
|
13
|
+
builder(point) {
|
|
14
|
+
return super.builder(point).addCssClass('forkOrJoin').size(10, 50);
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
17
|
CreateForkOrJoinNodeHandler = __decorate([
|
|
18
|
-
inversify_1.injectable()
|
|
18
|
+
(0, inversify_1.injectable)()
|
|
19
19
|
], CreateForkOrJoinNodeHandler);
|
|
20
20
|
exports.CreateForkOrJoinNodeHandler = CreateForkOrJoinNodeHandler;
|
|
21
21
|
//# sourceMappingURL=create-fork-or-join-node-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-fork-or-join-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-fork-or-join-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,
|
|
1
|
+
{"version":3,"file":"create-fork-or-join-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-fork-or-join-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAEvC,iFAA2E;AAG3E,IAAsB,2BAA2B,GAAjD,MAAsB,2BAA4B,SAAQ,wDAAyB;IAC5D,OAAO,CAAC,KAAwB;QAC/C,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IACvE,CAAC;CACJ,CAAA;AAJqB,2BAA2B;IADhD,IAAA,sBAAU,GAAE;GACS,2BAA2B,CAIhD;AAJqB,kEAA2B"}
|
|
@@ -33,7 +33,7 @@ let CreateJoinNodeHandler = class CreateJoinNodeHandler extends create_fork_or_j
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
CreateJoinNodeHandler = __decorate([
|
|
36
|
-
inversify_1.injectable()
|
|
36
|
+
(0, inversify_1.injectable)()
|
|
37
37
|
], CreateJoinNodeHandler);
|
|
38
38
|
exports.CreateJoinNodeHandler = CreateJoinNodeHandler;
|
|
39
39
|
//# sourceMappingURL=create-join-node-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-join-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-join-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAiD;AACjD,yFAAiF;AACjF,yCAAuC;AAGvC,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,8DAA2B;IAAtE;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,SAAS,CAAC,CAAC;QACxC,UAAK,GAAG,WAAW,CAAC;IACxB,CAAC;CAAA,CAAA;AAHY,qBAAqB;IADjC,sBAAU,
|
|
1
|
+
{"version":3,"file":"create-join-node-handler.js","sourceRoot":"","sources":["../../src/handler/create-join-node-handler.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAiD;AACjD,yFAAiF;AACjF,yCAAuC;AAGvC,IAAa,qBAAqB,GAAlC,MAAa,qBAAsB,SAAQ,8DAA2B;IAAtE;;QACI,mBAAc,GAAG,CAAC,wBAAU,CAAC,SAAS,CAAC,CAAC;QACxC,UAAK,GAAG,WAAW,CAAC;IACxB,CAAC;CAAA,CAAA;AAHY,qBAAqB;IADjC,IAAA,sBAAU,GAAE;GACA,qBAAqB,CAGjC;AAHY,sDAAqB"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { Point } from '@eclipse-glsp/server-node';
|
|
3
17
|
import { TaskNodeBuilder } from '../graph-extension';
|
|
18
|
+
import { CreateTaskHandler } from './create-task-handler';
|
|
4
19
|
export declare class CreateManualTaskHandler extends CreateTaskHandler {
|
|
5
20
|
elementTypeIds: string[];
|
|
6
21
|
label: string;
|
|
7
|
-
protected builder(point: Point | undefined
|
|
22
|
+
protected builder(point: Point | undefined): TaskNodeBuilder;
|
|
8
23
|
}
|
|
9
24
|
//# sourceMappingURL=create-manual-task-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manual-task-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-manual-task-handler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-manual-task-handler.d.ts","sourceRoot":"","sources":["../../src/handler/create-manual-task-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,qBACa,uBAAwB,SAAQ,iBAAiB;IAC1D,cAAc,WAA4B;IAC1C,KAAK,SAAiB;cAEH,OAAO,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,eAAe;CAGxE"}
|