Interface IAdoptedObjectUpdater<T extends org.eclipse.emf.ecore.EObject>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void beforeUpdate​(T source, T adopted, org.eclipse.core.runtime.IProgressMonitor monitor)
      Performs operations required before the adopted object gets updated with the new version of source.
      void updateAdopted​(T nativeObject, T adoptedObject, IAdopterContext context)
      Update the already adopted model object for the provided nativeObject according to this native object state.
    • Method Detail

      • beforeUpdate

        void beforeUpdate​(T source,
                          T adopted,
                          org.eclipse.core.runtime.IProgressMonitor monitor)
        Performs operations required before the adopted object gets updated with the new version of source.
        Parameters:
        source - the source object with which the adopted object is going to be updated, cannot be null
        adopted - the adopted object to be updated, cannot be null
        monitor - progress monitor, cannot be null
      • updateAdopted

        void updateAdopted​(T nativeObject,
                           T adoptedObject,
                           IAdopterContext context)
        Update the already adopted model object for the provided nativeObject according to this native object state.
        Parameters:
        nativeObject - the native model object to get update information from, cannot be null
        adoptedObject - the adopted model object to update, cannot be null
        context - the adopter context, cannot be null