de.cau.cs.kieler.synccharts.listener
Class TriggerListenerRecursiveAdd

java.lang.Object
  extended by org.eclipse.emf.transaction.ResourceSetListenerImpl
      extended by org.eclipse.emf.transaction.TriggerListener
          extended by de.cau.cs.kieler.synccharts.listener.FailSafeTriggerListener
              extended by de.cau.cs.kieler.synccharts.listener.FireOnceTriggerListener
                  extended by de.cau.cs.kieler.synccharts.listener.TriggerListenerRecursiveAdd
All Implemented Interfaces:
EventListener, ResourceSetListener, ResourceSetListener.Internal

public class TriggerListenerRecursiveAdd
extends FireOnceTriggerListener

A pre-commit TriggerListener that listens to any ADD and ADD_MANY notifications in the SyncChartsPackage and broadcasts new ADD Notifications for all children of the new objects. This is used to inform all pre-commit ResourceSetListeners also about the new children of the freshly added elements. If this was not installed, adding ABRO in one batch operation to a SyncChart would cause only one Notification about the main ABRO state but not about any of the child States/Regions/Signals/Transitions/...

Rating red

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.transaction.ResourceSetListener
ResourceSetListener.Internal
 
Field Summary
 
Fields inherited from class de.cau.cs.kieler.synccharts.listener.FireOnceTriggerListener
transaction
 
Constructor Summary
TriggerListenerRecursiveAdd()
           
TriggerListenerRecursiveAdd(NotificationFilter filter)
           
 
Method Summary
protected  Command trigger(TransactionalEditingDomain domain, Notification notification)
           
 
Methods inherited from class de.cau.cs.kieler.synccharts.listener.FireOnceTriggerListener
transactionAboutToCommit
 
Methods inherited from class org.eclipse.emf.transaction.TriggerListener
isPrecommitOnly
 
Methods inherited from class org.eclipse.emf.transaction.ResourceSetListenerImpl
getFilter, getTarget, isAggregatePrecommitListener, isPostcommitOnly, resourceSetChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggerListenerRecursiveAdd

public TriggerListenerRecursiveAdd()

TriggerListenerRecursiveAdd

public TriggerListenerRecursiveAdd(NotificationFilter filter)
Method Detail

trigger

protected Command trigger(TransactionalEditingDomain domain,
                          Notification notification)
Specified by:
trigger in class TriggerListener