Skip to content

[2112] Handle Start and Done StateUsages#2164

Open
jerome-obeo wants to merge 1 commit into
eclipse-syson:cooldownfrom
jerome-obeo:jgo/enh/add-start-end-states-on-state-usage
Open

[2112] Handle Start and Done StateUsages#2164
jerome-obeo wants to merge 1 commit into
eclipse-syson:cooldownfrom
jerome-obeo:jgo/enh/add-start-end-states-on-state-usage

Conversation

@jerome-obeo
Copy link
Copy Markdown
Contributor

@jerome-obeo jerome-obeo commented Apr 24, 2026

Bug: #2112

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.

@jerome-obeo jerome-obeo force-pushed the jgo/enh/add-start-end-states-on-state-usage branch from 7927bdb to a3cc319 Compare May 13, 2026 14:00
@jerome-obeo jerome-obeo changed the title [2112][WIP] Handle Start and Done StateUsages [2112] Handle Start and Done StateUsages May 13, 2026
@jerome-obeo jerome-obeo force-pushed the jgo/enh/add-start-end-states-on-state-usage branch 3 times, most recently from 66034a1 to 169ae9c Compare May 13, 2026 14:16
@jerome-obeo jerome-obeo marked this pull request as ready for review May 13, 2026 14:17
@AxelRICHARD AxelRICHARD added this to the 2026.7.0 milestone May 13, 2026
@AxelRICHARD AxelRICHARD linked an issue May 13, 2026 that may be closed by this pull request
Bug: eclipse-syson#2112
Signed-off-by: Jerome Gout <jerome.gout@obeosoft.com>
@jerome-obeo jerome-obeo force-pushed the jgo/enh/add-start-end-states-on-state-usage branch from 169ae9c to 9a33edd Compare May 19, 2026 14:42
@jerome-obeo jerome-obeo changed the base branch from main to cooldown May 19, 2026 14:44
Comment thread CHANGELOG.adoc

=== New features

- https://github.com/eclipse-syson/syson/issues/2112[#2112] [Diagram] Add tools to create Start and Done states, available on `StateUsage` and `StateDefinition` graphical nodes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[Diagram] => [diagrams]
Start => Start (italic)
Done => Done (italic)
states => StateUsages

}

/**
* * Get all reachable elements of the type given by the {@link EClass} in the {@link ResourceSet} of the given type
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

* Get => Get

Optional<Object> optPackage = this.objectSearchService.getObject(editingContext, GeneralViewWithTopNodesTestProjectData.SemanticIds.PACKAGE_1_ID);
assertThat(optPackage).isPresent().get().isInstanceOf(Package.class);
var parentPackage = (Package) optPackage.get();
parentPackage.setDeclaredName("States");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why do you rename the Package?
To test there is no conflicts with the standard library States.sysml?
If so it is a problem that has been fixed before, so unless I'm missing something here, I don't think it is necessary.

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.

Handle Start and Done StateUsages

2 participants