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
iterating
Fields inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
target
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
handle
(org.eclipse.emf.common.notify.Notification notification) void
notifyChanged
(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, useRecursion
Methods 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:
notifyChanged
in interfaceorg.eclipse.emf.common.notify.Adapter
- Overrides:
notifyChanged
in classorg.eclipse.emf.ecore.util.EContentAdapter
-
handle
protected void handle(org.eclipse.emf.common.notify.Notification notification)
-