Interface IModelApiTask<T,​E 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 IModelApiTask<T,​E extends org.eclipse.emf.ecore.EObject>
    The model API task for single object manipulation..
    This interface can be mixed with a IModelApiTaskDescription to provide a localized name of the task.
    • Method Detail

      • execute

        T execute​(E object,
                  org.eclipse.core.runtime.IProgressMonitor monitor)
        Executes the task.
        Parameters:
        object - the 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.