Class EMFStoreDirtyDecoratorCachedTree


  • public final class EMFStoreDirtyDecoratorCachedTree
    extends AbstractCachedTree<java.lang.Integer>
    Cached tree implementation for dirty decorators of model elements managed by EMFStore.
    Author:
    emueller
    • Method Detail

      • removeProject

        public static void removeProject​(ECPProject project)
        Removes an ECPProject from the Cache.
        Parameters:
        project - the project
      • getDefaultValue

        public java.lang.Integer getDefaultValue()
        Returns the default value for a cached node.
        The root value will be initialized with this value, too
        Specified by:
        getDefaultValue in class AbstractCachedTree<java.lang.Integer>
        Returns:
        the default value for a cached tree node
      • createdCachedTreeNode

        public CachedTreeNode<java.lang.Integer> createdCachedTreeNode​(java.lang.Integer t)
        Creates a cached tree node.
        Specified by:
        createdCachedTreeNode in class AbstractCachedTree<java.lang.Integer>
        Parameters:
        t - the value stored by the cached tree node
        Returns:
        the created node
      • addOperation

        public java.util.Set<org.eclipse.emf.ecore.EObject> addOperation​(org.eclipse.emf.ecore.EObject eObject)
        Call to indicate that an EObject was added.
        Parameters:
        eObject - the new EObject
        Returns:
        the Set of EObject affected by this change
      • removeOperation

        public java.util.Set<org.eclipse.emf.ecore.EObject> removeOperation​(org.eclipse.emf.ecore.EObject eObject)
        Call to indicate that an EObject was removed.
        Parameters:
        eObject - the removed EObject
        Returns:
        the Set of EObject affected by this change
      • setOperationCount

        public java.util.Set<org.eclipse.emf.ecore.EObject> setOperationCount​(org.eclipse.emf.ecore.EObject eObject,
                                                                              int count)
        Sets the operation count for the given object.
        Parameters:
        eObject - the eobject
        count - the new count
        Returns:
        the set of affected elements
      • getOwnValue

        public int getOwnValue​(org.eclipse.emf.ecore.EObject eObject)
        Gets the own cached value of the given object.
        Parameters:
        eObject - the e object
        Returns:
        the own cached value