[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] How to trigger Decorators and EditPolicies after programmatic model modifications?


Hello to all,

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.

Regards,

Martin