Skip to content

[1945] Add ends compartment on ConnectionDef and AllocationDef graphical nodes#1974

Open
pcdavid wants to merge 1 commit intomainfrom
pcd/enh/connection-def-ends-compartment
Open

[1945] Add ends compartment on ConnectionDef and AllocationDef graphical nodes#1974
pcdavid wants to merge 1 commit intomainfrom
pcd/enh/connection-def-ends-compartment

Conversation

@pcdavid
Copy link
Contributor

@pcdavid pcdavid commented Feb 9, 2026

Bug: #1945
Signed-off-by: Pierre-Charles David pierre-charles.david@obeo.fr

PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW

Auto review

  • Have you reviewed this PR? Please do a first quick review, It is very useful to detect typos and missing copyrights, check comments, check your code... The reviewer will thank you for that :)

Project management

  • Has the pull request been added to the relevant milestone?
  • Have the priority: and pr: labels been added to the pull request? (In case of doubt, start with the labels priority: low and pr: to review later)
  • Have the relevant issues been added to the pull request?
  • Have the relevant labels been added to the issues? (area:, type:)
  • Have the relevant issues been added to the same project milestone as the pull request?

Changelog and release notes

  • Has the CHANGELOG.adoc + doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc been updated to reference the relevant issues?
  • Have the relevant API breaks been described in the CHANGELOG.adoc?
  • Are the new / upgraded dependencies mentioned in the relevant section of the CHANGELOG.adoc?
  • In case of a change with a visual impact, are there any screenshots in the doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?
  • In case of a key change, has the change been added to Key highlights section in doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?

Documentation

  • Have you included an update of the documentation in your pull request? Please ask yourself if an update (installation manual, user manual, developer manual...) is needed and add one accordingly.

Tests

  • Is the code properly tested? Any pull request (fix, enhancement or new feature) should come with a test (or several). It could be unit tests, integration tests or cypress tests depending on the context. Only doc and releng pull request do not need for tests.

@pcdavid pcdavid force-pushed the pcd/enh/connection-def-ends-compartment branch from 880dc0a to 0e8d6ae Compare February 9, 2026 16:04
@AxelRICHARD AxelRICHARD added this to the 2026.3.0 milestone Feb 10, 2026
@pcdavid pcdavid force-pushed the pcd/enh/connection-def-ends-compartment branch 2 times, most recently from 4d31268 to 79933b9 Compare February 12, 2026 08:42
@pcdavid pcdavid changed the title [1945] Add ends compartment on ConnectionDef graphical node [1945] Add ends compartment on ConnectionDef and AllocationDef graphical nodes Feb 12, 2026
@pcdavid pcdavid force-pushed the pcd/enh/connection-def-ends-compartment branch from 79933b9 to fe14086 Compare February 12, 2026 08:47
@pcdavid pcdavid marked this pull request as ready for review February 12, 2026 09:34
@@ -63,10 +63,31 @@ public DiagramCheckerService(DiagramComparator diagramComparator, IDescriptionNa
*/
public Consumer<Object> childNodeGraphicalChecker(AtomicReference<Diagram> previousDiagram, DiagramDescriptionIdProvider diagramDescriptionIdProvider, String parentLabel, EClass childEClass,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method seems to be used only one time in the code, so may be you could only have the new version and delete this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.


private void addConnectionEnd(ConnectionDefinition connectionDefinition, String name) {
var referenceUsage = SysmlFactory.eINSTANCE.createReferenceUsage();
referenceUsage.setDeclaredName("end");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably call "ElementInitializerSwitch" on the new elements you create

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, I think (not sure I understood correctly).

** Add _New Satisfy Requirement_ graphical edge tool between `Feature` graphical nodes and `RequirementUsage` graphical nodes.
This tool allows to create a `SatisfyRequirementUsage` between the `Feature` and `RequirementUsage` selected during the tool creation.

** Newly created `AllocationDefinition` and `ConnectionDefinition` nodes now have two initial _connection ends_, named `source` and `target`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please prefer graphical nodes instead of nodes and graphical edges instead of edges

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

…al nodes

Bug: #1945
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
@pcdavid pcdavid force-pushed the pcd/enh/connection-def-ends-compartment branch from fe14086 to b10d28c Compare February 13, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ends compartment on ConnectionDef and AllocationDef graphical nodes

2 participants