Skip to content

Commit 9201763

Browse files
committed
[1532] Add new Requirements table View
Bug: #1532 Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
1 parent 2ec97f0 commit 9201763

66 files changed

Lines changed: 3429 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Any `Namespace` stored in those libraries are now cached for quick access.
5353
As a consequence, some coding rules violations have been fixed.
5454
The `org.eclipse.syson.services.grammars` package in `syson-direct-edit-grammar` has been renamed into `org.eclipse.syson.direct.edit.grammars`.
5555
`AbtractItemUsageBorderNodeDescriptionProvider` has been renamed to `AbstractItemUsageBorderNodeDescriptionProvider`.
56+
- https://github.com/eclipse-syson/syson/issues/1532[#1532] [tables] Add new Requirements table View.
57+
As a consequence, the `syson-table-requirements-view` and `syson-common-view` modules has been created.
58+
`IViewDescriptionProvider.java` and `SysONViewDescriptionProvider.java` have been moved from `syson-diagram-common-view` to `syson-common-view`.
5659

5760
=== Dependency update
5861

@@ -98,6 +101,7 @@ This contribution allows to switch from one _ViewDefinition_ to another one in a
98101
* `SysMLPackageNodeAppearanceHandler implements INodeAppearanceHandler` handles how the node is updated from the `appearanceChanges`.
99102
* A GraphQL mutation is also added through `editSysMLPackageNodeAppearance`.
100103
* Same mechanism is applied to `ImportedPackage`, `Note` and `ViewFrame` nodes.
104+
- https://github.com/eclipse-syson/syson/issues/1532[#1532] [tables] Add new Requirements table View.
101105

102106
== v2025.8.0
103107

backend/application/syson-application-configuration/src/main/java/org/eclipse/syson/application/migration/DiagramOnViewUsageMigrationHook.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
import org.eclipse.sirius.web.domain.boundedcontexts.representationdata.RepresentationMetadata;
3131
import org.eclipse.sirius.web.domain.boundedcontexts.representationdata.repositories.IRepresentationContentRepository;
3232
import org.eclipse.sirius.web.domain.boundedcontexts.representationdata.services.api.IRepresentationMetadataUpdateService;
33-
import org.eclipse.syson.application.services.GetIntermediateContainerCreationSwitch;
3433
import org.eclipse.syson.sysml.Element;
3534
import org.eclipse.syson.sysml.Relationship;
3635
import org.eclipse.syson.sysml.SysmlFactory;
3736
import org.eclipse.syson.sysml.ViewDefinition;
3837
import org.eclipse.syson.sysml.ViewUsage;
3938
import org.eclipse.syson.sysml.util.ElementUtil;
39+
import org.eclipse.syson.util.GetIntermediateContainerCreationSwitch;
4040
import org.eclipse.syson.util.SysONRepresentationDescriptionIdentifiers;
4141
import org.springframework.stereotype.Service;
4242
import org.springframework.transaction.annotation.Transactional;

backend/application/syson-application-configuration/src/main/java/org/eclipse/syson/application/services/SysMLv2EditService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import org.eclipse.syson.sysml.SysmlPackage;
5353
import org.eclipse.syson.sysml.ViewUsage;
5454
import org.eclipse.syson.sysml.util.ElementUtil;
55+
import org.eclipse.syson.util.GetIntermediateContainerCreationSwitch;
5556
import org.eclipse.syson.util.SysMLMetamodelHelper;
5657
import org.eclipse.syson.util.SysONRepresentationDescriptionIdentifiers;
5758
import org.springframework.stereotype.Service;

backend/application/syson-application/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@
114114
<artifactId>syson-standard-diagrams-view</artifactId>
115115
<version>2025.8.5</version>
116116
</dependency>
117+
<dependency>
118+
<groupId>org.eclipse.syson</groupId>
119+
<artifactId>syson-table-requirements-view</artifactId>
120+
<version>2025.8.5</version>
121+
</dependency>
117122
<dependency>
118123
<groupId>org.eclipse.syson</groupId>
119124
<artifactId>syson-tree-explorer-view</artifactId>

backend/releng/syson-test-coverage/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
<artifactId>syson-standard-diagrams-view</artifactId>
101101
<version>2025.8.5</version>
102102
</dependency>
103+
<dependency>
104+
<groupId>org.eclipse.syson</groupId>
105+
<artifactId>syson-table-requirements-view</artifactId>
106+
<version>2025.8.5</version>
107+
</dependency>
103108
<dependency>
104109
<groupId>org.eclipse.syson</groupId>
105110
<artifactId>syson-tree-explorer-view</artifactId>

backend/services/syson-services/src/main/java/org/eclipse/syson/util/AQLConstants.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2023 Obeo.
2+
* Copyright (c) 2023, 2025 Obeo.
33
* This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v2.0
55
* which accompanies this distribution, and is available at
@@ -23,6 +23,10 @@ public class AQLConstants {
2323

2424
public static final String AQL_SELF = "aql:self";
2525

26+
public static final String AQL_TRUE = "aql:true";
27+
28+
public static final String AQL_FALSE = "aql:false";
29+
2630
public static final String DEFAULT_LABEL_EXPRESSION = "aql:self.declaredName";
2731

2832
public static final String DIAGRAM = "diagram";

backend/application/syson-application-configuration/src/main/java/org/eclipse/syson/application/services/GetIntermediateContainerCreationSwitch.java renamed to backend/services/syson-services/src/main/java/org/eclipse/syson/util/GetIntermediateContainerCreationSwitch.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2024 , 2025 Obeo.
2+
* Copyright (c) 2024, 2025 Obeo.
33
* This program and the accompanying materials
44
* are made available under the terms of the Eclipse Public License v2.0
55
* which accompanies this distribution, and is available at
@@ -10,7 +10,7 @@
1010
* Contributors:
1111
* Obeo - initial API and implementation
1212
*******************************************************************************/
13-
package org.eclipse.syson.application.services;
13+
package org.eclipse.syson.util;
1414

1515
import java.util.Objects;
1616
import java.util.Optional;
@@ -30,10 +30,9 @@
3030
import org.eclipse.syson.sysml.SysmlPackage;
3131
import org.eclipse.syson.sysml.TextualRepresentation;
3232
import org.eclipse.syson.sysml.Usage;
33-
import org.eclipse.syson.util.SysmlEClassSwitch;
3433

3534
/**
36-
* Switch for retrieving the intermediate container of the element to create, if there is one..
35+
* Switch for retrieving the intermediate container of the element to create, if there is one.
3736
*
3837
* @author arichard
3938
*/

backend/views/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232
</distributionManagement>
3333

3434
<modules>
35+
<module>syson-common-view</module>
3536
<module>syson-diagram-common-view</module>
3637
<module>syson-standard-diagrams-view</module>
38+
<module>syson-table-requirements-view</module>
3739
<module>syson-tree-explorer-view</module>
3840
<module>syson-diagram-tests</module>
3941
</modules>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<fileset-config file-format-version="1.2.0" simple-config="false" sync-formatter="false">
4+
<fileset name="all" enabled="true" check-config-name="SysON" local="false">
5+
<file-match-pattern match-pattern="." include-pattern="true"/>
6+
</fileset>
7+
<filter name="FilesFromPackage" enabled="true">
8+
<filter-data value="src/main/resources"/>
9+
<filter-data value="src/test/resources"/>
10+
</filter>
11+
</fileset-config>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10+
<attributes>
11+
<attribute name="maven.pomderived" value="true"/>
12+
<attribute name="optional" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
16+
<attributes>
17+
<attribute name="optional" value="true"/>
18+
<attribute name="maven.pomderived" value="true"/>
19+
<attribute name="test" value="true"/>
20+
</attributes>
21+
</classpathentry>
22+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
23+
<attributes>
24+
<attribute name="maven.pomderived" value="true"/>
25+
<attribute name="test" value="true"/>
26+
<attribute name="optional" value="true"/>
27+
</attributes>
28+
</classpathentry>
29+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
30+
<attributes>
31+
<attribute name="maven.pomderived" value="true"/>
32+
</attributes>
33+
</classpathentry>
34+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
35+
<attributes>
36+
<attribute name="maven.pomderived" value="true"/>
37+
</attributes>
38+
</classpathentry>
39+
<classpathentry kind="src" path="target/generated-sources/annotations">
40+
<attributes>
41+
<attribute name="optional" value="true"/>
42+
<attribute name="maven.pomderived" value="true"/>
43+
<attribute name="ignore_optional_problems" value="true"/>
44+
<attribute name="m2e-apt" value="true"/>
45+
</attributes>
46+
</classpathentry>
47+
<classpathentry kind="src" output="target/test-classes" path="target/generated-test-sources/test-annotations">
48+
<attributes>
49+
<attribute name="optional" value="true"/>
50+
<attribute name="maven.pomderived" value="true"/>
51+
<attribute name="ignore_optional_problems" value="true"/>
52+
<attribute name="m2e-apt" value="true"/>
53+
<attribute name="test" value="true"/>
54+
</attributes>
55+
</classpathentry>
56+
<classpathentry kind="output" path="target/classes"/>
57+
</classpath>

0 commit comments

Comments
 (0)