Class 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
    • 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
      • Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl

        getTarget, isAdapterForType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CachedContentsAdapter

        protected CachedContentsAdapter()
    • 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
      • handle

        protected void handle​(org.eclipse.emf.common.notify.Notification notification)