Interface EventSupporter


  • public interface EventSupporter
    Interface for MD event supporter.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void afterChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
      The method will be invoked after property change.
      void beforeChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, java.lang.String featureName)
      The method will be invoked before specified property change.
      void firePropertyChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index)
      Implementation must fire property change event.
      void firePropertyChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue, int index, int newIndex)
      Implementation must fire property change event.
      java.lang.String getPropertyEventName​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, java.lang.Object value)
      Returns name of the property change event.
      boolean isRawMode​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
      Method should return true if event support is in raw mode.
      void startLogEvents​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
      Starts logging of events.
      void stopLogEvents​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
      Stops logging of events.
    • Method Detail

      • getPropertyEventName

        java.lang.String getPropertyEventName​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting,
                                              java.lang.Object value)
        Returns name of the property change event.
        Parameters:
        setting - setting that uses this event supporter.
        value - property that changed value.
        Returns:
        property name.
      • startLogEvents

        void startLogEvents​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
        Starts logging of events.
        Parameters:
        setting - setting for that logging should be started.
      • stopLogEvents

        void stopLogEvents​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
        Stops logging of events.
        Parameters:
        setting - setting for that logging should be stopped.
      • beforeChange

        void beforeChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting,
                          java.lang.String featureName)
        The method will be invoked before specified property change.
        Parameters:
        setting - setting that uses this event supporter.
        featureName - name of the feature.
      • afterChange

        void afterChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
        The method will be invoked after property change.
        Parameters:
        setting - setting that uses this event supporter.
      • firePropertyChange

        void firePropertyChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting,
                                java.lang.String propertyName,
                                java.lang.Object oldValue,
                                java.lang.Object newValue,
                                int index)
        Implementation must fire property change event.
        Parameters:
        setting - setting that uses this event supporter.
        propertyName - name of the changed property.
        oldValue - old value of the property.
        newValue - new value of the property.
        index - index of the new value.
      • firePropertyChange

        void firePropertyChange​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting,
                                java.lang.String propertyName,
                                java.lang.Object oldValue,
                                java.lang.Object newValue,
                                int index,
                                int newIndex)
        Implementation must fire property change event.
        Parameters:
        setting - setting that uses this event supporter.
        propertyName - name of the changed property.
        oldValue - old value of the property.
        newValue - new value of the property.
        index - index of the new value.
        newIndex - new index of the value
      • isRawMode

        boolean isRawMode​(org.eclipse.emf.ecore.EStructuralFeature.Setting setting)
        Method should return true if event support is in raw mode.
        Parameters:
        setting - setting that uses this event supporter.
        Returns:
        true if raw mode.