problem with update of layout model when changing the semantic model [message #38367] |
Mon, 04 September 2006 08:50  |
Eclipse User |
|
|
|
Hi there,
we extend GMF with the possibilty of adding complex editing operations. The
designer of the editor can define transformation rules (e.g. to add more
than one element to the diagram in one step) that will be applied on the
semantic model.
The changes in the semantic model are excecuted within a command. When
adding elements to the semantic model the layout model and the view are
updated correctly by GMF.
Here comes the Problem:
But when elements are deleted from the semantic model they remain in the
layout model. Only the reference to the semantic element (the <element.../>
tag in the source of the layout model) is deleted.
If the shouldDeleteView(View view) method of the XYZCanonicalEditPolicy
class of the topLevel element returns true, the elements are deleted
completely from the view, but in our case the test
"view.getElement().eIsProxy()" returns false and so the layout of the
diagram is incorrect.
I hope this is enough information for you to tell us what our problem is and
what we should do to make the elements to be deleted eProxys.
Thanks for helping ;o)
Andre Crema
TU Berlin - Tiger Project
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04727 seconds