Skip to content

[2470] Add selection dialog in New ItemDefinition as Payload tool - #2491

Open
jerome-obeo wants to merge 1 commit into
eclipse-syson:mainfrom
jerome-obeo:jgo/enh/add_item_selection_in_new_item_as_payload_tool
Open

[2470] Add selection dialog in New ItemDefinition as Payload tool#2491
jerome-obeo wants to merge 1 commit into
eclipse-syson:mainfrom
jerome-obeo:jgo/enh/add_item_selection_in_new_item_as_payload_tool

Conversation

@jerome-obeo

@jerome-obeo jerome-obeo commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Add the selection of an existing element in New ItemDefinition as Payload and New PartDefinition as Payload tools on AcceptAction graphical node.

Bug: #2470

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.

@AxelRICHARD AxelRICHARD added this to the 2026.9.0 milestone Aug 28, 2026
@jerome-obeo
jerome-obeo force-pushed the jgo/enh/add_item_selection_in_new_item_as_payload_tool branch 2 times, most recently from 590a317 to 8e549f8 Compare August 28, 2026 15:37
@AxelRICHARD

AxelRICHARD commented Aug 31, 2026

Copy link
Copy Markdown
Member

When user selects "Select existing ItemDefinition" in the selection dialog, selects an existing ItemDefinition and validate the tool, then a new ItemDefinition is created, but it shouldn't be in this case (same problem for PartDefinition tool)

See:

Enregistrement.de.l.ecran.2026-08-31.a.16.51.22.mov


** Improve the edge tool creating a `FlowUsage`, by creating a `ReferenceUsage` used for the redefinition of the `FlowEnd` only when it is needed.
** Fix the edge tool creating a `ConnectionUsage` between an `ActionUsage` graphical node and the _done_ `ActionUsage` graphical node.
** Add the capability of selecting an existing element in `New ItemDefinition as Payload` and `New PartDefinition as Payload` tools on `AcceptAction` graphical node. The creation a new element remains available.

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.

The creation a new element remains available. => The creation of a new element remains available.

Each new sentence should be on a new line in our adoc files, please keep that in mind.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2024 Obeo.
* Copyright (c) 2026 Obeo.

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.

2026 => 2024, 2026

Please take the time to do your auto-review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

return self;
}

private Type createNewAcceptActionPayload(String payloadEClassName, AcceptActionUsage acceptActionName) {

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.

Please add meaningful javadoc

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Add the selection of an existing element in `New ItemDefinition as
Payload` and `New PartDefinition as Payload` tools on `AcceptAction`
graphical node.

Bug: eclipse-syson#2470
Signed-off-by: Jerome Gout <jerome.gout@obeosoft.com>
@jerome-obeo
jerome-obeo force-pushed the jgo/enh/add_item_selection_in_new_item_as_payload_tool branch from 8e549f8 to 3e88595 Compare August 31, 2026 15:27
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.

New ItemDefinition as Payload on AcceptAction should use selection dialog

2 participants