[2097] Handle expressions in SysON#2225
Open
pcdavid wants to merge 1 commit into
Open
Conversation
0f3937f to
30421cd
Compare
b8013e2 to
0d62629
Compare
470e4f6 to
8906c7d
Compare
8906c7d to
7553a4b
Compare
138dc67 to
c7a2511
Compare
38c2f7b to
3e7f13d
Compare
AxelRICHARD
reviewed
May 28, 2026
Member
AxelRICHARD
left a comment
There was a problem hiding this comment.
Just minor comments to take into account please, thank you for this new feature!
| @@ -1,5 +1,5 @@ | |||
| /******************************************************************************* | |||
| * Copyright (c) 2025 Obeo. | |||
| * Copyright (c) 2025, 2026 Obeo. | |||
Member
There was a problem hiding this comment.
No need for copyright update here
| @@ -1,5 +1,5 @@ | |||
| /******************************************************************************* | |||
| * Copyright (c) 2024, 2025 Obeo. | |||
| * Copyright (c) 2024, 2026 Obeo. | |||
Member
There was a problem hiding this comment.
No need for copyright update here
| * Extracts the expression and its parent relationship once they have been parsed and linked. This is the reverse of | ||
| * {@link #wrapPlainExpression(Element, String)}. | ||
| * | ||
| * @param roots |
Member
There was a problem hiding this comment.
Please add javadoc for @param and @return annotations, here and everywhere else in this file or other file you modified.
| return Optional.ofNullable(result).stream().toList(); | ||
| } | ||
|
|
||
| private Element extractGuardExpression(StateUsage wrappingState) { |
Member
There was a problem hiding this comment.
Could you add javadoc for this method please?
What happens if the wrappingState does not have two relationships?
| ExpressionCreationResult createExpression(IEMFEditingContext emfEditingContext, Element parentElement, String expressionText); | ||
|
|
||
| // "Editing" an expression actually means creating a new one to replace the previous one. | ||
| ExpressionCreationResult editExpression(IEMFEditingContext emfEditingContext, Element parentElement, Expression expression, String expressionText); |
Member
There was a problem hiding this comment.
Could you convert that into javadoc please?
| * @author pcdavid | ||
| */ | ||
| public interface ISysMLExpressionEditor { | ||
| ExpressionCreationResult createExpression(IEMFEditingContext emfEditingContext, Element parentElement, String expressionText); |
Member
There was a problem hiding this comment.
Could you add javadoc please?
e64c04e to
b6ada90
Compare
AxelRICHARD
approved these changes
May 28, 2026
Bug: #2097 Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
b6ada90 to
2e461b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PLEASE READ ALL ITEMS AND CHECK ONLY RELEVANT CHECKBOXES BELOW
Auto review
Project management
priority:andpr:labels been added to the pull request? (In case of doubt, start with the labelspriority: lowandpr: to review later)area:,type:)Changelog and release notes
CHANGELOG.adoc+doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adocbeen updated to reference the relevant issues?CHANGELOG.adoc?CHANGELOG.adoc?doc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Key highlightssection indoc/content/modules/user-manual/pages/release-notes/YYYY.MM.0.adoc?Documentation
Tests