org.eclipse.emf.emfstore.internal.modelmutator.api
Class LoggingAdapter

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.modelmutator.api.FilteredAdapter
              extended by org.eclipse.emf.emfstore.internal.modelmutator.api.LoggingAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal

public class LoggingAdapter
extends FilteredAdapter

Basic extension of FilteredAdapter to print out the notifications.

Author:
Julian Sommerfeldt

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
LoggingAdapter(List<org.eclipse.emf.ecore.EClass> toLogClasses, List<org.eclipse.emf.ecore.EReference> toLogReferences, boolean references, boolean attributes)
           
 
Method Summary
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
           
 
Methods inherited from class org.eclipse.emf.emfstore.internal.modelmutator.api.FilteredAdapter
getEventType
 
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

LoggingAdapter

public LoggingAdapter(List<org.eclipse.emf.ecore.EClass> toLogClasses,
                      List<org.eclipse.emf.ecore.EReference> toLogReferences,
                      boolean references,
                      boolean attributes)
Parameters:
toLogClasses - The EClasses to log. If null every EClass is logged.
toLogReferences - The EReferencees of the toLogClasses to log. If null every EReference is logged.
references - Log reference changes?
attributes - Log attribute changes?
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


Copyright © 2015. All Rights Reserved.