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

WIP: Serialization #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

WIP: Serialization #27

wants to merge 5 commits into from

Conversation

marian-lingsch
Copy link
Collaborator

Die Serialisierung funktioniert und im eclipse editor wird automatisch eine neue Datei angelegt, welche den serialisierten Code enthält. Im test Ordner befinden sich zwei Tests für die Serialisierung. Es wäre super wenn ihr es euch anschauen könntet.

@marian-lingsch marian-lingsch added the parser XText part of project label Jul 2, 2021
@marian-lingsch marian-lingsch added this to the Sprint KW 27 milestone Jul 2, 2021
Copy link
Collaborator

@mlichtblau mlichtblau left a comment

Choose a reason for hiding this comment

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

Looks already really good to me!
Did you check out the 'Validators' and 'Quickfixes'?
I think a combination of your solution and validators would be great, because then we could provide inline warnings and quick fix suggestions and additionally allow users to fix their diagrams in place.
For the transformation it would also be so much easier if we had less rules in XText, which we need to handle.
Maybe we can keep this PR on hold while investigating the other solution so we can do the easy transformation first and then adopt your rules afterwards?
What do you think?

Copy link
Collaborator

@dat-leth dat-leth left a comment

Choose a reason for hiding this comment

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

Good job investigating and implementing a proof of concept. This PR shows that using Serialization is a viable method of creating a file that is most compatible with PlantUML as well as UML.

However in my opinion this adds a lot of complexity regarding Xtext rules and it is not immediately obvious to me how to add future compatibility fixes in a sustainable way.
This approach feels quite heavyweight and may be too complex and overpowered for now, otherwise correct me if I'm wrong.

@josephhirsch
Copy link
Collaborator

The rules that where changed in PlantUML.xtext by this merge request conflict the rules of the merge request regarding the cross-references! We need to consider this before merging one or the other.

Especially the distinction between Quoted- and Unquoted-X seems a bit heavyweight for me. Can you take a look at the branch cross-references where I managed to allow Quoted and Unqoted participant mentions in messages by Parsing the Cross-Reference with the Role ParticipantMention and extracting the reference without the quotes afterwards with a value converter?

Also im not quite sure if we can safely remove the "returns Participant" part at the different Participant Definitions. Correct me if im wrong!

@dat-leth dat-leth changed the title Serialization WIP: Serialization Jul 6, 2021
@dat-leth dat-leth removed this from the Sprint KW 27 milestone Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge parser XText part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants