Interface AbstractMoveElementHandler.IListElementIndexComputer

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

    @FunctionalInterface
    protected static interface AbstractMoveElementHandler.IListElementIndexComputer
    The new list element index computer.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int compute​(List<org.eclipse.emf.ecore.EObject> allElements, List<org.eclipse.emf.ecore.EObject> selectedElements, org.eclipse.emf.ecore.EObject element)
      Computes the new index of the element considering the provided all list elements and the selected elements.
    • Method Detail

      • compute

        int compute​(List<org.eclipse.emf.ecore.EObject> allElements,
                    List<org.eclipse.emf.ecore.EObject> selectedElements,
                    org.eclipse.emf.ecore.EObject element)
        Computes the new index of the element considering the provided all list elements and the selected elements. Method is invoked for all element form the list of selectedElements.
        Parameters:
        allElements - a list of all collection elements, cannot be null
        selectedElements - a list of selected elements, cannot be null
        element - the element to compute index for, cannot be null
        Returns:
        the new index of the element