Class EObjectManager<T extends EObject>

    • Constructor Detail

      • EObjectManager

        protected EObjectManager()
        Creates a new EObjectManager.
    • Method Detail

      • getEObject

        public abstract T getEObject()
        Returns the EObject this EObjectManager manages.
        Returns:
        the EObject this EObjectManager manages.
      • reloadEObject

        public abstract void reloadEObject()
        Reloads the EObject.
      • saveEObject

        public abstract void saveEObject()
                                  throws CoreException
        Persists the current EObject to a model file.
        Throws:
        CoreException - if persisting failed.
      • clear

        public void clear()
        Clears the state of the EObjectManager.
      • isDirty

        public boolean isDirty()
        Returns the dirty state of this EObjectManager.
        Returns:
        the dirty state of this object
      • setDirty

        public void setDirty​(boolean dirty)
        Sets the dirty state of this EObjectManager. The dirty state should be true if the EObject contains unsaved modifications, false otherwise.
        Parameters:
        dirty - the new dirty state
      • runLastUpdate

        public void runLastUpdate​(boolean eObjectChanges)
        Runs the last recognized update that modified the EObject.
        Parameters:
        eObjectChanges - true if the EObject will change afterwards, false otherwise
      • setLastUpdate

        public void setLastUpdate​(UpdateRunnable update)
        Sets the last recognized update that modified the EObject to the given one.
        Parameters:
        update - the new last recognized update