Class DerivedStateAwareModelChangeListener

    • Field Detail

      • resource

        protected org.eclipse.emf.ecore.resource.Resource resource
    • Constructor Detail

      • DerivedStateAwareModelChangeListener

        public DerivedStateAwareModelChangeListener​(org.eclipse.emf.ecore.resource.Resource resource,
                                                    IDerivedStateComputer derivedStateComputer)
        Constructor.
        Parameters:
        resource - the resource for which this derived state comuter computes derived data (cannot be null).
        derivedStateComputer - the IDerivedStateComputer instance (cannot be null).
    • Method Detail

      • modelChanged

        public void modelChanged​(org.eclipse.emf.common.notify.Notification event)
        Description copied from interface: IModelChangeListener

        The source will invoce this method to announce changed resource. The event will never be null. However, it may contain an empty list of deltas.

        Listeners are free to remove themselves from the sender of the event or add other listeners. However added listeners will not be informed about the current change.

        This event fired synchronously.

        Specified by:
        modelChanged in interface IModelChangeListener
        Parameters:
        event - the fired event. Will never be null.