I have a domain model that I associated with the diagram by file extension
by Dnd of the file to the surface (similar to how the library example adapts
in adaptAddLibraryContext, I now want to populate the diagram with all the
objects that exist in the domain model on the diagram surface, I have Add
and Create features for each and palette drops work fine, but I am not sure
which feature to override in order to populate the diagram with all shapes
when I open the diagram. Is there an example of this?
Christian Brand Messages: 36 Registered: July 2009 Location: Walldorf/Germany
I am not entirely sure to understand the problem completely.
I think you have a domain model and want to see it completely visualized in your diagram automatically. In this case you should implement an update feature for your diagram, which does all the update stuff.
You can also have a look at org.eclipse.graphiti.features.impl.DefaultUpdateDiagramFeature.