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

392: Add categories to the model #129

Merged
merged 7 commits into from
Oct 19, 2021
Merged

392: Add categories to the model #129

merged 7 commits into from
Oct 19, 2021

Conversation

CamilleLetavernier
Copy link
Member

@CamilleLetavernier CamilleLetavernier commented Sep 15, 2021

  • Add structured compartments using X/Y Layout
  • Improve VBox Layout to support stacking variable-size compartments
  • Introduce LayoutData to configure the new VBox layout (and potentially other layouts as well)
  • Add a custom TypeAdapter for LayoutData to workaround EMF-to-JSon serialization issues (See EMF to JSon serialization doesn't work for nested data types glsp#393 )
  • Introduce GeometryUtil to convert from absolute to relative coordinates on the Server

This PR should be reviewed together with the corresponding client-side changes: eclipse-glsp/glsp-client/pull/136

- Add structured compartments using X/Y Layout
- Improve VBox Layout to support stacking variable-size compartments
- Introduce LayoutData to configure the new VBox layout (and potentially
other layouts as well)
- Add a custom TypeAdapter for LayoutData to workaround EMF-to-JSon
serialization issues
- Introduce GeometryUtil to convert from absolute to relative
coordinates on the Server

Fixes eclipse-glsp/glsp/issues/392

Signed-off-by: Camille Letavernier <cletavernier@eclipsesource.com>
Signed-off-by: Camille Letavernier <cletavernier@eclipsesource.com>
@tortmayr
Copy link
Contributor

tortmayr commented Oct 5, 2021

@CamilleLetavernier #127 has been merged so I have rebased your PR to resolve conflicts

@martin-fleck-at
Copy link
Contributor

@CamilleLetavernier I also did a quick update of your commit to fix minor code issues. I also removed the new 'layoutData' after talking to Philip. Please see also my comments on the client change. We can discuss this of course but adding yet another layout map/object does not seem necessary to me.

@tortmayr
Copy link
Contributor

tortmayr commented Oct 9, 2021

It looks like there are some inconsistences in the copyright-headers of the generated ecore code. For new files (like Category.java) the copyright header is correct (2019-2021). For file that are just changed the copyright header is wrong (2019-2020).

@martin-fleck-at
Copy link
Contributor

@tortmayr Great catch! I did as you suggested and re-generated all files and added a new commit.

@planger
Copy link
Member

planger commented Oct 11, 2021

Please be aware that there are a few overwritten methods (marked with @generated not) in the GLSP Graph model code.

@tortmayr tortmayr self-requested a review October 18, 2021 09:27
@tortmayr
Copy link
Contributor

Thanks! LGTM! 👍

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.

None yet

4 participants