Interface EObjectSelectionStrategy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  EObjectSelectionStrategy.Provider
      Specific Bazaar vendor interface for EObject selection strategies.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static EObjectSelectionStrategy NULL
      An idempotent strategy (does not modify the selection).
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Collection<org.eclipse.emf.ecore.EObject> collectExistingObjects​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference, java.util.Collection<org.eclipse.emf.ecore.EObject> existingObjects)
      Update a collection of EObjects that are eligible for addition to a reference feature.
    • Method Detail

      • collectExistingObjects

        java.util.Collection<org.eclipse.emf.ecore.EObject> collectExistingObjects​(org.eclipse.emf.ecore.EObject owner,
                                                                                   org.eclipse.emf.ecore.EReference reference,
                                                                                   java.util.Collection<org.eclipse.emf.ecore.EObject> existingObjects)
        Update a collection of EObjects that are eligible for addition to a reference feature.
        Parameters:
        owner - the proposed owner of the references to existing objects
        reference - the owner's reference in which to add a objects
        existingObjects - a mutable collection of eligible objects. Implementors may add and remove elements in this collection as needed
        Returns:
        a mutable filtered collection of objects that can be passed into the next strategy. A suggested pattern is to modify the existingObjects in place and return that collection