org.eclipse.emf.emfstore.internal.modelmutator.api
Class FilteredAdapter
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.ecore.util.EContentAdapter
org.eclipse.emf.emfstore.internal.modelmutator.api.FilteredAdapter
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
- Direct Known Subclasses:
- LoggingAdapter
public abstract class FilteredAdapter
- extends org.eclipse.emf.ecore.util.EContentAdapter
Adapter to log changes of model in modelmutator. Also useful to filter notifications.
- Author:
- Julian Sommerfeldt
| Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter |
org.eclipse.emf.common.notify.Adapter.Internal |
|
Constructor Summary |
FilteredAdapter(List<org.eclipse.emf.ecore.EClass> toLogClasses,
List<org.eclipse.emf.ecore.EReference> toLogReferences,
boolean references,
boolean attributes)
|
| Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter |
notifyChanged, setTarget, unsetTarget |
| Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl |
getTarget, isAdapterForType |
FilteredAdapter
public FilteredAdapter(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?
getEventType
public static String getEventType(int eventType)
- Convert an int eventType of a notification to a
String.
- Parameters:
eventType - The eventType to convert.
- Returns:
- The
String representing the eventType.
Copyright © 2015. All Rights Reserved.