Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental layout refactoring #361

Merged
merged 5 commits into from
Mar 15, 2021

Conversation

florianbarbin
Copy link
Contributor

Type of this PR

  • Bug fix
  • New feature or improvement
  • Documentation
  • Cleanup
  • Test
  • Build/Releng

Issue(s)

Issues #285 #286 #287
...

What does this PR do?

...

Screenshot/screencast of this PR

...

Potential side effects

...

How to test this PR?

  • Frontend Unit tests
  • Backend Unit tests
  • Cypress : please specify
  • Manual Test : please specify

Checklist

  • I have read CONTRIBUTING carefully.
  • I have signed the Contributor License Agreement.
  • All my commits are signed-off (-s) with my mail address of my Eclipse Account.
  • I have covered my changes by unit tests or integration tests or manual tests.
  • All tests pass.
  • I have updated the documentation accordingly
  • New React components are availables in storybook

Element labelElement = new Element(LabelComponent.class, labelComponentProps);
List<Element> nodeChildren = new ArrayList<>();
nodeChildren.add(labelElement);
nodeChildren.addAll(borderNodes);
nodeChildren.addAll(childNodes);

Position position = optionalPreviousNode.map(Node::getPosition).orElse(Position.UNDEFINED);
Size size = optionalPreviousNode.map(Node::getSize).orElse(Size.UNDEFINED);
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure that this will not add back the bug in which a semantic change cannot change the size of an element?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored in the last commit [285]

Copy link
Member

@sbegaudeau sbegaudeau left a comment

Choose a reason for hiding this comment

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

See the other comments

@florianbarbin florianbarbin force-pushed the wpi/enh/refactoring branch 3 times, most recently from 1d755d5 to 5c81cac Compare March 12, 2021 09:49
Bug: eclipse-sirius#382
Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
Bug: eclipse-sirius#286
Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
@sbegaudeau sbegaudeau force-pushed the wpi/enh/refactoring branch 2 times, most recently from 47b0420 to cb58246 Compare March 15, 2021 12:58
wpiers and others added 3 commits March 15, 2021 16:07
Bug: eclipse-sirius#287
Signed-off-by: William Piers <william.piers@obeo.fr>
Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
Bug: eclipse-sirius#286
Signed-off-by: Florian Barbin <florian.barbin@obeo.fr>
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
@sbegaudeau sbegaudeau merged commit f75d892 into eclipse-sirius:master Mar 15, 2021
@sbegaudeau sbegaudeau deleted the wpi/enh/refactoring branch March 15, 2021 15:22
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.

Use UUID instead of String for Label ID. Refactor the layout algorithm
3 participants