org.eclipse.emf.emfstore.internal.common.model.util
Class EObjectChangeNotifier

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by org.eclipse.emf.emfstore.internal.common.model.util.EObjectChangeNotifier
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

public class EObjectChangeNotifier
extends org.eclipse.emf.ecore.util.EContentAdapter

Notifies a about changes in its containment hierarchy.

Author:
koegel, emueller

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
EObjectChangeNotifier(NotifiableIdEObjectCollectionImpl notifiableCollection, org.eclipse.emf.common.notify.Notifier notifier)
          Constructor.
 
Method Summary
 void disableNotifications(boolean notificationDisabled)
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
          
 
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
setTarget, unsetTarget
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EObjectChangeNotifier

public EObjectChangeNotifier(NotifiableIdEObjectCollectionImpl notifiableCollection,
                             org.eclipse.emf.common.notify.Notifier notifier)
Constructor. Attaches an Adapter to the given Notifier and forwards notifications to the given NotifiableIdEObjectCollection, that reacts appropriately.

Parameters:
notifiableCollection - a NotifiableIdEObjectCollection
notifier - the Notifier to listen to
Method Detail

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)

Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter
Overrides:
notifyChanged in class org.eclipse.emf.ecore.util.EContentAdapter
See Also:
EContentAdapter.notifyChanged(org.eclipse.emf.common.notify.Notification)

disableNotifications

public void disableNotifications(boolean notificationDisabled)
Parameters:
notificationDisabled - the notificationDisabled to set


Copyright © 2015. All Rights Reserved.