eclipse-sprotty / sprotty-server

Server implementation for the Sprotty diagramming framework
https://eclipse.org/sprotty
Eclipse Public License 2.0
23 stars 19 forks source link

Make registering actions easier #65

Open tomvdbussche opened 4 years ago

tomvdbussche commented 4 years ago

There should be an easier way to register custom actions with GSON. Right now this happens in a static method within ActionTypeAdapter so the only possibility I have is to copy that method and customize it. Moving this initialization to for example DiagramServerEndpoint could make registering new actions easier by providing an overridable method.