Package org.eclipse.epsilon.emc.emf
Class EmfModel.CachedContentsAdapter
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterImpl
org.eclipse.emf.ecore.util.EContentAdapter
org.eclipse.epsilon.emc.emf.EmfModel.CachedContentsAdapter
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter,org.eclipse.emf.common.notify.Adapter.Internal
- Enclosing class:
- EmfModel
protected class EmfModel.CachedContentsAdapter
extends org.eclipse.emf.ecore.util.EContentAdapter
This listener is the one that keeps the cached .allInstances
and model .allContents() lists up to date, instead of the usual
createInstance/deleteInstance methods.
This prevents the cache from becoming inconsistent if EcoreUtil
or any other code outside Epsilon is used to create instances
within the model.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal -
Field Summary
Fields inherited from class org.eclipse.emf.ecore.util.EContentAdapter
iteratingFields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandle(org.eclipse.emf.common.notify.Notification notification) voidnotifyChanged(org.eclipse.emf.common.notify.Notification notification) Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
addAdapter, basicSetTarget, basicUnsetTarget, handleContainment, removeAdapter, removeAdapter, resolve, selfAdapt, setTarget, setTarget, setTarget, setTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget, unsetTarget, useRecursionMethods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType
-
Constructor Details
-
CachedContentsAdapter
protected CachedContentsAdapter()
-
-
Method Details
-
notifyChanged
public void notifyChanged(org.eclipse.emf.common.notify.Notification notification) - Specified by:
notifyChangedin interfaceorg.eclipse.emf.common.notify.Adapter- Overrides:
notifyChangedin classorg.eclipse.emf.ecore.util.EContentAdapter
-
handle
protected void handle(org.eclipse.emf.common.notify.Notification notification)
-