CanonicalEditPolicy listening to whole business model tree [message #536122] |
Thu, 27 May 2010 03:21 |
Eclipse User |
|
|
|
Originally posted by: luzi.anderegg.ergon.ch
In our use case, the business model consists of a tree of elements where
elements can be added or removed dynamically. in contrast, the
notational model has a flat hierarchy with a diagram and one level of
child elements. these notational child elements correspond to attributes
in a business model element. in order to delete a child element in the
notational model when the business model element is deleted, we have
installed a canonical edit policy. the canonical edit policy has to
listen on every business model element. currently, we use an
EContentAdapter which calls the refresh of the CanonicalEditPolicy
directly. is this a good way to do it or is there a more gmf-style (in
the CanonicalEditPolicy or in the DiagramEventBroker or ...) way for this?
thanks for any information,
Luzi
|
|
|
Powered by
FUDForum. Page generated in 0.02456 seconds