Hi ;
Your
Edit Part is already listening to the Semantic/View elements it uses and
it receive the events when a child is added to the Notation View, or the
semantic element
adding a child usually is handled by
the container edit part
you can always override the method handleNotificationEvent(Notification
event) in your edit part and add any special handling to it
for example, you can check if the notifier
is the semantic element and the Feature is some special feature and the
event type is Add or delete then you trigger what ever action you like
you can check the GraphicalEditPart#handleNotificationEvent
implementation to see how we respond to adding/removing children to the
view by triggering a refreshChildren call
if you like to listen to more than the
View/Semantic element of the edit part you can override the GraphircalEditPart
#addNotationalListeners
or GraphicalEditPart#addSemanticListeners
and listen to other elements, but you had to be careful when you make your
edit part listen to elements other than its Semantic/View because this
might affect you application performance if it was not done right