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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CachedContentsAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
-
-
-
-
Method Detail
-
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)
-
-