eclipsesource / graphical-lsp

Graphical language server platform for building web-based diagram editors
https://www.eclipse.org/glsp
Eclipse Public License 2.0
36 stars 8 forks source link

Add support for undo & redo (#276) #299

Closed planger closed 5 years ago

planger commented 5 years ago

Wraps the execution of operation handlers, which should be the only handlers actually modifying the GModel, into a recoding command, which is executed on a command stack. Moreover, this change introduces server-side undo and redo actions, which are sent by the client's command stack on undo and redo request to the server. On the server, those undo and redo actions are handled by the server-side command stack.

Thus, this change fixes #276 and resolves #275.

A few explanations about certain aspects of this change: