@eclipse-glsp-examples/workflow-server 2.2.0-next.95 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2023 STMicroelectronics and others.
2
+ * Copyright (c) 2022-2024 STMicroelectronics and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -1 +1 @@
1
- {"version":3,"file":"node-documentation-navigation-target-provider.d.ts","sourceRoot":"","sources":["../../../src/common/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAQ,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAAqB,UAAU,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAI/F,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"}
1
+ {"version":3,"file":"node-documentation-navigation-target-provider.d.ts","sourceRoot":"","sources":["../../../src/common/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAQ,aAAa,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/E,OAAO,EAA6B,UAAU,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAIvG,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"}
@@ -20,7 +20,7 @@ let NodeDocumentationNavigationTargetProvider = class NodeDocumentationNavigatio
20
20
  getTargets(editorContext) {
21
21
  if (editorContext.selectedElementIds.length === 1) {
22
22
  const taskNode = this.modelState.index.findByClass(editorContext.selectedElementIds[0], graph_extension_1.TaskNode);
23
- if (!taskNode || !(taskNode.id === 'task0')) {
23
+ if (!taskNode || !taskNode.children.some(child => child instanceof server_1.GLabel && child.text === 'Push')) {
24
24
  return [];
25
25
  }
26
26
  const sourceUri = this.modelState.sourceUri;
@@ -1 +1 @@
1
- {"version":3,"file":"node-documentation-navigation-target-provider.js","sourceRoot":"","sources":["../../../src/common/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,iDAA+F;AAC/F,yCAA+C;AAC/C,wDAA8C;AAGvC,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAA/C;QACH,iBAAY,GAAG,eAAe,CAAC;IA2BnC,CAAC;IAtBG,UAAU,CAAC,aAA4B;QACnC,IAAI,aAAa,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,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,CAAC;gBAC1C,OAAO,EAAE,CAAC;YACd,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YAC5C,IAAI,CAAC,SAAS,EAAE,CAAC;gBACb,OAAO,EAAE,CAAC;YACd,CAAC;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,0BAAiB,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;QACzC,CAAC;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AA5BY,8FAAyC;AAI/B;IADlB,IAAA,kBAAM,EAAC,mBAAU,CAAC;;6EACuB;oDAJjC,yCAAyC;IADrD,IAAA,sBAAU,GAAE;GACA,yCAAyC,CA4BrD"}
1
+ {"version":3,"file":"node-documentation-navigation-target-provider.js","sourceRoot":"","sources":["../../../src/common/provider/node-documentation-navigation-target-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,iDAAuG;AACvG,yCAA+C;AAC/C,wDAA8C;AAGvC,IAAM,yCAAyC,GAA/C,MAAM,yCAAyC;IAA/C;QACH,iBAAY,GAAG,eAAe,CAAC;IA2BnC,CAAC;IAtBG,UAAU,CAAC,aAA4B;QACnC,IAAI,aAAa,CAAC,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAChD,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,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,YAAY,eAAM,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,CAAC,EAAE,CAAC;gBAClG,OAAO,EAAE,CAAC;YACd,CAAC;YAED,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC;YAC5C,IAAI,CAAC,SAAS,EAAE,CAAC;gBACb,OAAO,EAAE,CAAC;YACd,CAAC;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,0BAAiB,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;QACzC,CAAC;QACD,OAAO,EAAE,CAAC;IACd,CAAC;CACJ,CAAA;AA5BY,8FAAyC;AAI/B;IADlB,IAAA,kBAAM,EAAC,mBAAU,CAAC;;6EACuB;oDAJjC,yCAAyC;IADrD,IAAA,sBAAU,GAAE;GACA,yCAAyC,CA4BrD"}
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2024 STMicroelectronics and others.
2
+ * Copyright (c) 2022-2023 STMicroelectronics and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.WorkflowPopupFactory = void 0;
10
10
  /********************************************************************************
11
- * Copyright (c) 2022-2024 STMicroelectronics and others.
11
+ * Copyright (c) 2022-2023 STMicroelectronics and others.
12
12
  *
13
13
  * This program and the accompanying materials are made available under the
14
14
  * terms of the Eclipse Public License v. 2.0 which is available at
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp-examples/workflow-server",
3
- "version": "2.2.0-next.95+a733f72",
3
+ "version": "2.2.0",
4
4
  "description": "GLSP node server for the workflow example",
5
5
  "keywords": [
6
6
  "eclipse",
@@ -56,9 +56,9 @@
56
56
  "watch:bundle": "webpack -w"
57
57
  },
58
58
  "dependencies": {
59
- "@eclipse-glsp/layout-elk": "2.2.0-next.95+a733f72",
60
- "@eclipse-glsp/server": "2.2.0-next.95+a733f72",
61
- "inversify": "^6.0.1"
59
+ "@eclipse-glsp/layout-elk": "2.2.0",
60
+ "@eclipse-glsp/server": "2.2.0",
61
+ "inversify": "^6.0.2"
62
62
  },
63
63
  "devDependencies": {
64
64
  "source-map-loader": "^4.0.1",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "a733f72d957426f7eb20b73ce3bcda217feff80a"
71
+ "gitHead": "459711c17da0e804bc9113f22ce1262e0ff4af8a"
72
72
  }
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2023 STMicroelectronics and others.
2
+ * Copyright (c) 2022-2024 STMicroelectronics and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at
@@ -14,7 +14,7 @@
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 { JsonOpenerOptions, ModelState, NavigationTargetProvider } from '@eclipse-glsp/server';
17
+ import { GLabel, JsonOpenerOptions, ModelState, NavigationTargetProvider } from '@eclipse-glsp/server';
18
18
  import { inject, injectable } from 'inversify';
19
19
  import { TaskNode } from '../graph-extension';
20
20
 
@@ -28,7 +28,7 @@ export class NodeDocumentationNavigationTargetProvider implements NavigationTarg
28
28
  getTargets(editorContext: EditorContext): NavigationTarget[] {
29
29
  if (editorContext.selectedElementIds.length === 1) {
30
30
  const taskNode = this.modelState.index.findByClass(editorContext.selectedElementIds[0], TaskNode);
31
- if (!taskNode || !(taskNode.id === 'task0')) {
31
+ if (!taskNode || !taskNode.children.some(child => child instanceof GLabel && child.text === 'Push')) {
32
32
  return [];
33
33
  }
34
34
 
@@ -1,5 +1,5 @@
1
1
  /********************************************************************************
2
- * Copyright (c) 2022-2024 STMicroelectronics and others.
2
+ * Copyright (c) 2022-2023 STMicroelectronics and others.
3
3
  *
4
4
  * This program and the accompanying materials are made available under the
5
5
  * terms of the Eclipse Public License v. 2.0 which is available at