I do modify the core model programmatically. More concrete, I add new
elements and new associations between them.
The question now is, how to correctly update/refresh/re-initialize the
diagram ? This is of course necessary because new model elements in
general have a graphical representation.
It is crucial, that all Decorators and EditPolicies are installed and
activated on the new EditParts.
I investigated the diagram initialization mechanism to some extent and
found out the a simple call of initializeGraphicalViewerContents() does
not work in general.