org.eclipse.emf.emfstore.internal.common.model.util
Interface IdEObjectCollectionChangeObserver

All Superinterfaces:
ESObserver
All Known Subinterfaces:
NotifiableIdEObjectCollection, Project
All Known Implementing Classes:
NotifiableIdEObjectCollectionImpl, OperationManager, OperationRecorder, ProjectImpl, ResourcePersister

public interface IdEObjectCollectionChangeObserver
extends ESObserver

An observer interface for tracking changes upon an IdEObjectCollection.

Author:
emueller

Method Summary
 void collectionDeleted(IdEObjectCollection collection)
          If the IdEObjectCollection is deleted.
 void modelElementAdded(IdEObjectCollection collection, org.eclipse.emf.ecore.EObject eObject)
          Called when the eObject has been added to the collection.
 void modelElementRemoved(IdEObjectCollection collection, org.eclipse.emf.ecore.EObject eObject)
          Called when the eObject and its siblings have been removed from the collection.
 void notify(org.eclipse.emf.common.notify.Notification notification, IdEObjectCollection collection, org.eclipse.emf.ecore.EObject modelElement)
          A notification on a model element of the collection occurred.
 

Method Detail

notify

void notify(org.eclipse.emf.common.notify.Notification notification,
            IdEObjectCollection collection,
            org.eclipse.emf.ecore.EObject modelElement)
A notification on a model element of the collection occurred. See Notification documentation for details on the notifications. This method will be called even if the given notification results from an add or remove of a model element of the project.

Parameters:
notification - the notification
collection - the collection holding the modelElement
modelElement - the model element the notification originates from

modelElementAdded

void modelElementAdded(IdEObjectCollection collection,
                       org.eclipse.emf.ecore.EObject eObject)
Called when the eObject has been added to the collection.

Parameters:
collection - the IdEObjectCollection to which the eObject was added
eObject - the EObject that has been added to the collection

modelElementRemoved

void modelElementRemoved(IdEObjectCollection collection,
                         org.eclipse.emf.ecore.EObject eObject)
Called when the eObject and its siblings have been removed from the collection. NOTE: Note that you will NOT receive a separate notification for each sibling.

Parameters:
collection - the IdEObjectCollection to which the eObject was added
eObject - the EObject that has been added to the collection

collectionDeleted

void collectionDeleted(IdEObjectCollection collection)
If the IdEObjectCollection is deleted.

Parameters:
collection - the IdEObjectCollection that has been deleted


Copyright © 2015. All Rights Reserved.