Class ReferenceServiceCustomizationVendor<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double bid​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
      Bid on provision for the given and reference.
      protected boolean handles​(org.eclipse.emf.ecore.EObject owner, org.eclipse.emf.ecore.EReference reference)
      Queries whether I should bid on the given owner and reference.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReferenceServiceCustomizationVendor

        public ReferenceServiceCustomizationVendor()
        Initializes me .
    • Method Detail

      • bid

        public java.lang.Double bid​(org.eclipse.emf.ecore.EObject owner,
                                    org.eclipse.emf.ecore.EReference reference)
        Bid on provision for the given and reference. This implementation returns the default bid, which is the OSGi configured ranking of this service, if the handles(EObject, EReference) method return true.
        Parameters:
        owner - the owner of a reference being edited by the Reference Service
        reference - the reference being edited
        Returns:
        the bid, or null to opt out
        See Also:
        handles(EObject, EReference)
      • handles

        protected boolean handles​(org.eclipse.emf.ecore.EObject owner,
                                  org.eclipse.emf.ecore.EReference reference)
        Queries whether I should bid on the given owner and reference. The default implementation just returns true; subclasses should override.
        Parameters:
        owner - the owner of a reference being edited by the Reference Service
        reference - the reference being edited
        Returns:
        whether I should bid