[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Update/Synchronize diagram after execute EMF operations

Hello Josep,

I think my problem is not a refresh one. If I'm not wrong, the handler
that you suggest me as an example (F5 handler) refreshes diagrams
elements, but it does not delete graphical elements, automatically,
No. F5 is a way to execute Canonical update for the selected diagram element (synchronize diagam element structure with an underlying domain model one).

Is it possible to do what I am trying to do?
You are right - ciorresponding update should be performed by GMF-generated code automatically. We have some problems with diagram update on link rerouting/deleting, but it looks like not your case.
Can you try prassing F5 to update diagram after customized execution? You need to select parent element of the element you've modified/added/deleted and press F5.


Are GMF bugs generating this incorrect situation?
Definitely there can be some problems with diagram update, but I'd like to ensure the problem is in update process, so I suggest you pressing F5 ad debugging generated ???DiagramUpdater if F5 is not working to see if the problem is in diagram update..

BTW, another posibility to refresh diagram is to close it and reopen again - diagram content should be updated on diagram openning.

Is GMF designed to be synchronized with EMF by means of the editHelper
classes and it is the "only" way to proceed?
No. ???CanonicalEditoPolicy classes generated for each diagram element are responsible for listening for any notifications from EMF and updating diagram in accordance.

-----------------
Alex Shatalin