Interface IModelApiTask2<T,​E1 extends org.eclipse.emf.ecore.EObject,​E2 extends org.eclipse.emf.ecore.EObject>

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IModelApiTask2<T,​E1 extends org.eclipse.emf.ecore.EObject,​E2 extends org.eclipse.emf.ecore.EObject>
    The model API task for couple objects manipulation.
    This interface can be mixed with a IModelApiTaskDescription to provide a localized name of the task.
    • Method Detail

      • execute

        T execute​(E1 object1,
                  E2 object2,
                  org.eclipse.core.runtime.IProgressMonitor monitor)
        Executes the task.
        Parameters:
        object1 - the first object to manipulate within the task, cannot be null.
        object2 - the second object to manipulate within the task, cannot be null.
        monitor - the progress monitor, cannot be null.
        Returns:
        the result of the execution in accordance with its logic.