Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

EMF-based SModel on the server #231

Closed
planger opened this issue Apr 15, 2019 · 0 comments · Fixed by #272
Closed

EMF-based SModel on the server #231

planger opened this issue Apr 15, 2019 · 0 comments · Fixed by #272
Assignees
Labels
feature server A issue that is heavily affecting the server part (Java)

Comments

@planger
Copy link
Collaborator

planger commented Apr 15, 2019

While we strictly want to avoid limiting the models that can be visualized and edited via GLSP to be EMF-based models, it certainly has an advantage to use EMF as a framework for representing the runtime SModel on the server. This would ease things like validation, undo/redo support, change notifications, adapters, etc.

In my view, a specific GLSP implementation for a particular model needs to map the arbitrary representation of that model into an SModel at runtime (aka SModelFactory as also the case for some Sprotty examples). This SModel is then the representation on which the GLSP server acts, without knowing or caring where it came from. During the editing process, the GLSP server sends change notifications to the component that originally created the SModel, which in turn maps the changes (or the changed state) back to the original representation. Whether the SModel is now EMF-based or not doesn't interfere with the original model to be anything from POJOs, EMF models, or Xtext-based EMF models.

@planger planger added server A issue that is heavily affecting the server part (Java) feature labels Apr 15, 2019
@planger planger self-assigned this Jun 5, 2019
tortmayr added a commit that referenced this issue Jun 5, 2019
Introduce EMF-based graph model on the server
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature server A issue that is heavily affecting the server part (Java)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant