|
After upgrading to Graphiti 0.9.0, the way we integrate the SwitchYard model with the Diagram model has changed. We should now be able to load an existing layout and update it based on any changes made outside the editor.
We will need to modify/create update features for: Composite and Component. CompositeUpdateFeature should scan for missing service, references and components.
ComponentUpdateFeature should scan for missing component service/references. The decorator should also be checked.
See Graphiti.getPeService().getElementsNotInDiagram().
Graphiti provides an update feature for removing shapes that reference missing model elements, so we just need to focus on adding shapes.
|