|
Re: [Sirius Web] Custom diagram framework [message #1844059 is a reply to message #1843598] |
Mon, 30 August 2021 11:10  |
Eclipse User |
|
|
|
Hi,
The code for those examples is not publicly available.
There is no documentation for this at the moment as the APIs are still somewhat in flux, but the main entry points are:
- `IRepresentation`, `IRepresentationDescription` and a renderer to create the data structure corresponding to your representation given the current state of the user data models;
- `IRepresentationEventProcessor` (and the corresponding factory) to handle the mutation operations requested by users via your representation;
- you'll need a `IEditingContextEventHandler` to handle the actual creation of an instance of your representation (see for example org.eclipse.sirius.web.spring.collaborative.forms.handlers.CreateFormEventHandler).
On the frontend, see `sirius-components/frontend/src/workbench/RepresentationContext.ts`: you'll need to register your own React-based component (similar to `FormWebSocketContainer`) which will be instanciated to display a specific instance of your new representation kind, trigger the appropriate mutation requests and receive new versions of the representation (rendered on the backend) when the backend sends them.
|
|
|
Powered by
FUDForum. Page generated in 0.03955 seconds