Open tortmayr opened 1 year ago
Sketch of a potential solution:
ChangeBoundsOperation
containing the new position of each element with boundsChangeRoutingPointsOperation
for routing points of SRoutableElementImpl
instancesThis will allow reusing the diagram-specific implementations of those operations so the position and routing point changes would correctly end up in whatever source model is being used.
The behavior sketched above should probably be done in the LayoutOperationHandler
after it has called layout()
.
Side note: some default implementations for handling the ChangeBoundAction
might not suited to handle this use case.
e.g. the EMFChangeBoundsOperationHandler
currently only handles top-level shapes. So layout information of ports and or sub-labels would get lost.
see https://github.com/eclipse-glsp/glsp/discussions/1168